X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0e87ae0739ed3e72301b7b718098f97a7f06a5d8..f3958a113d7cb8eb3e3d31b3f05962e258960fa8:/apps/piston/tests.py?ds=sidebyside 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)