diff options
author | Kali Kaneko <kali@leap.se> | 2015-03-02 14:34:40 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-03-03 14:30:18 -0400 |
commit | 0f491cc4f94c00cd9c6e2afe7e3163dfaaad3714 (patch) | |
tree | 9e47bcedf85d686b4af877e9989aea64da14c5ca /src | |
parent | 90a7d68039c95824711e32463c27e44870ec165e (diff) |
[bug] Fix IllegalMailboxCreate
We're raising the exception now, not a Failure.
Releases: 0.9.0
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/mail/imap/tests/test_imap.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/leap/mail/imap/tests/test_imap.py b/src/leap/mail/imap/tests/test_imap.py index fbe02d4..a94cea7 100644 --- a/src/leap/mail/imap/tests/test_imap.py +++ b/src/leap/mail/imap/tests/test_imap.py @@ -1025,7 +1025,6 @@ class LEAPIMAP4ServerTestCase(IMAP4HelperMixin): self.assertItemsEqual(self.results, [1, 3]) -# TODO -------- Fix this testcase class AccountTestCase(IMAP4HelperMixin): """ Test the Account. @@ -1037,19 +1036,7 @@ class AccountTestCase(IMAP4HelperMixin): return self.server.theAccount.addMailbox('one') def test_illegalMailboxCreate(self): - # FIXME --- account.addMailbox needs to raise a failure, - # not the direct exception. - self.stashed = None - - def stash(result): - self.stashed = result - - d = self._create_empty_mailbox() - d.addBoth(stash) - d.addCallback(lambda _: self.failUnless(isinstance(self.stashed, - failure.Failure))) - return d - #self.assertRaises(AssertionError, self._create_empty_mailbox) + self.assertRaises(AssertionError, self._create_empty_mailbox) class IMAP4ServerSearchTestCase(IMAP4HelperMixin): |