Permalink
Browse files

use assertEqual instead of assertTrue

  • Loading branch information...
1 parent 8c6fcad commit 1dc5058d414a7568a4671695ff5a4a689088f6b2 @mcdonc mcdonc committed May 25, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 docs/index.rst
View
@@ -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
individual ``Message`` instances::
- self.assertTrue(len(mailer.outbox) == 1)
- self.assertTrue(mailer.outbox[0].subject == "hello world")
+ self.assertEqual(len(mailer.outbox), 1)
+ self.assertEqual(mailer.outbox[0].subject, "hello world")
- self.assertTrue(len(mailer.queue) == 1)
- self.assertTrue(mailer.queue[0].subject == "hello world")
+ self.assertEqual(len(mailer.queue), 1)
+ self.assertEqual(mailer.queue[0].subject, "hello world")
Queue
-----

0 comments on commit 1dc5058

Please sign in to comment.