Rev 34: should_send does not always return a boolean anymore. in file:///v/home/vila/.bazaar/plugins/email/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed May 21 08:27:49 BST 2008
At file:///v/home/vila/.bazaar/plugins/email/
------------------------------------------------------------
revno: 34
revision-id: v.ladeuil+lp at free.fr-20080521072748-y7jeky3yw8kbf7ko
parent: john at arbash-meinel.com-20080501225950-1qerrg9fp54ifmel
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: email
timestamp: Wed 2008-05-21 09:27:48 +0200
message:
should_send does not always return a boolean anymore.
* testemail.py:
Make the test suite pass again.
modified:
tests/testemail.py testpublish.py-20051018071212-e3a53d78c05e0e0a
-------------- next part --------------
=== modified file 'tests/testemail.py'
--- a/tests/testemail.py 2007-02-17 18:09:12 +0000
+++ b/tests/testemail.py 2008-05-21 07:27:48 +0000
@@ -94,19 +94,19 @@
def test_should_send(self):
sender = self.get_sender()
- self.assertEqual(True, sender.should_send())
+ self.assertTrue(sender.should_send())
def test_should_not_send(self):
sender = self.get_sender(unconfigured_config)
- self.assertEqual(False, sender.should_send())
+ self.assertFalse(sender.should_send())
def test_should_not_send_sender_configured(self):
sender = self.get_sender(sender_configured_config)
- self.assertEqual(False, sender.should_send())
+ self.assertFalse(sender.should_send())
def test_should_not_send_to_configured(self):
sender = self.get_sender(to_configured_config)
- self.assertEqual(True, sender.should_send())
+ self.assertTrue(sender.should_send())
def test_send_to_multiple(self):
sender = self.get_sender(multiple_to_configured_config)
More information about the bazaar-commits
mailing list