![](https://secure.gravatar.com/avatar/dbaf195c2af6db8e50751583016180b0.jpg?s=120&d=mm&r=g)
Jan. 20, 2013
11:10 p.m.
I am writing a test for lmtp runner as follows:
def test_function(self): self._lmtp.sendmail(.........) messages = get_queue_messages('in') self.assertEqual(len(messages), 1)
self._lmtp.sendmail(.........)
messages = get_queue_messages('in')
self.assertEqual(len(messages), 1)
and the test passes successfully , but shouldn't the second self.assertEqual( ) fail because number of messages in 'in' should now be 2 . Might be, self._lmtp is creating new lmtp instance each time it executes sendmail( ) , or is there something else ?
Cheers, Sandesh
4408
Age (days ago)
4408
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sandesh Agrawal