mail tests: testClose, testExpunge, testFilterbyMailbox not passing
- should fail on unhandled errors:
testClose (leap.mail.imap.tests.test_imap.LeapIMAP4ServerTestCase) ... in callback select------------------ Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/unittest2/case.py", line 340, in run testMethod() File "/home/kali/leap/leap_mail/src/leap/mail/imap/tests/test_imap.py", line 1218, in testClose return defer.gatherResults([d, d2]).addCallback(self._cbTestClose, m) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 304, in addCallback callbackKeywords=kw) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 293, in addCallbacks self._runCallbacks() --- --- File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 575, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/home/kali/leap/leap_mail/src/leap/mail/imap/tests/test_imap.py", line 1221, in _cbTestClose self.assertEqual(len(m.messages), 1) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/unittest2/case.py", line 521, in assertEqual assertion_func(first, second, msg=msg) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/unittest2/case.py", line 514, in _baseAssertEqual raise self.failureException(msg) exceptions.AssertionError: 0 != 1 ok testCreate (leap.mail.imap.tests.test_imap.LeapIMAP4ServerTestCase) ... ok testDelete (leap.mail.imap.tests.test_imap.LeapIMAP4ServerTestCase) ... ok testExamine (leap.mail.imap.tests.test_imap.LeapIMAP4ServerTestCase) ... in callback select------------------ ok testExpunge (leap.mail.imap.tests.test_imap.LeapIMAP4ServerTestCase) ... in callback select------------------ Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/unittest2/case.py", line 340, in run testMethod() File "/home/kali/leap/leap_mail/src/leap/mail/imap/tests/test_imap.py", line 1261, in testExpunge return d.addCallback(self._cbTestExpunge, m) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 304, in addCallback callbackKeywords=kw) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 293, in addCallbacks self._runCallbacks() --- --- File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 575, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/home/kali/leap/leap_mail/src/leap/mail/imap/tests/test_imap.py", line 1264, in _cbTestExpunge self.assertEqual(len(m.messages), 1) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/unittest2/case.py", line 521, in assertEqual assertion_func(first, second, msg=msg) File "/home/kali/Virtualenvs/leap-bitmask/local/lib/python2.7/site-packages/unittest2/case.py", line 514, in _baseAssertEqual raise self.failureException(msg) exceptions.AssertionError: 0 != 1
- testFilterByMailbox is failing
====================================================================== FAIL: testFilterByMailbox (leap.mail.imap.tests.test_imap.MessageCollectionTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/kali/leap/leap_mail/src/leap/mail/imap/tests/test_imap.py", line 432, in testFilterByMailbox self.assertEqual(self.messages.count(), 3) AssertionError: 1 != 3
(from redmine: created on 2013-12-10, closed on 2013-12-12)