Skip to content

Commit

Permalink
use assertEqual instead of assertTrue
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed May 25, 2012
1 parent 8c6fcad commit 1dc5058
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/index.rst
Expand Up @@ -283,11 +283,11 @@ The ``DummyMailer`` instance keeps track of emails "sent" in two properties:
sent via :meth:`pyramid_mailer.mailer.Mailer.send`. Each stores the sent via :meth:`pyramid_mailer.mailer.Mailer.send`. Each stores the
individual ``Message`` instances:: individual ``Message`` instances::


self.assertTrue(len(mailer.outbox) == 1) self.assertEqual(len(mailer.outbox), 1)
self.assertTrue(mailer.outbox[0].subject == "hello world") self.assertEqual(mailer.outbox[0].subject, "hello world")


self.assertTrue(len(mailer.queue) == 1) self.assertEqual(len(mailer.queue), 1)
self.assertTrue(mailer.queue[0].subject == "hello world") self.assertEqual(mailer.queue[0].subject, "hello world")


Queue Queue
----- -----
Expand Down

0 comments on commit 1dc5058

Please sign in to comment.