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
_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to