diff options
| author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-22 09:56:36 +0000 | 
|---|---|---|
| committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:27 +0200 | 
| commit | 0449598c74b996e718cbefe7ca291bdf0389a64f (patch) | |
| tree | 3c091ef2cedc1383e6485949c4f7ff5ab20fdba0 /service/test/unit/adapter/test_mailbox.py | |
| parent | 414f210a908427da10a90fb4c8c83d58e1496b26 (diff) | |
Skipped test_welcome_mail integration test.
- Fixed test_mailbox.py
Diffstat (limited to 'service/test/unit/adapter/test_mailbox.py')
| -rw-r--r-- | service/test/unit/adapter/test_mailbox.py | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/service/test/unit/adapter/test_mailbox.py b/service/test/unit/adapter/test_mailbox.py index ed634648..e3e02f04 100644 --- a/service/test/unit/adapter/test_mailbox.py +++ b/service/test/unit/adapter/test_mailbox.py @@ -13,12 +13,13 @@  #  # You should have received a copy of the GNU Affero General Public License  # along with Pixelated. If not, see <http://www.gnu.org/licenses/>. -import unittest +from twisted.trial import unittest  from pixelated.adapter.model.mail import PixelatedMail  from pixelated.adapter.services.mailbox import Mailbox  from mockito import mock, when, verify  from test.support import test_helper +from twisted.internet import defer  class PixelatedMailboxTest(unittest.TestCase): @@ -35,8 +36,9 @@ class PixelatedMailboxTest(unittest.TestCase):          verify(self.querier).remove_mail(mail) +    @defer.inlineCallbacks      def test_fresh_mailbox_checking_lastuid(self):          when(self.querier).get_lastuid('INBOX').thenReturn(0)          self.assertTrue(self.mailbox.fresh)          when(self.querier).get_lastuid('INBOX').thenReturn(1) -        self.assertFalse(self.mailbox.fresh) +        self.assertFalse((yield self.mailbox.fresh))  | 
