X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0e87ae0739ed3e72301b7b718098f97a7f06a5d8..7d9b407e014ef1b394ef52d678d67458cc460abf:/apps/piston/tests.py?ds=inline diff --git a/apps/piston/tests.py b/apps/piston/tests.py index 92d14ee3b..99f7028fd 100644 --- a/apps/piston/tests.py +++ b/apps/piston/tests.py @@ -19,7 +19,7 @@ class ConsumerTest(TestCase): def test_create_pending(self): """ Ensure creating a pending Consumer sends proper emails """ - # If it's pending we should have two messages in the outbox; one + # If it's pending we should have two messages in the outbox; one # to the consumer and one to the site admins. if len(settings.ADMINS): self.assertEquals(len(mail.outbox), 2) @@ -36,8 +36,8 @@ class ConsumerTest(TestCase): mail.outbox = [] # Delete the consumer, which should fire off the cancel email. - self.consumer.delete() - + self.consumer.delete() + self.assertEquals(len(mail.outbox), 1) expected = "Your API Consumer for example.com has been canceled." self.assertEquals(mail.outbox[0].subject, expected)