]> khamidou — GitHub mirrors - imapclient.git/commitdiff
Fix select test, there's no guarantee there will be a message in the inbox
authorMenno Smits <menno@freshfoo.com>
Wed, 27 Jan 2010 08:43:41 +0000 (08:43 +0000)
committerMenno Smits <menno@freshfoo.com>
Wed, 27 Jan 2010 08:43:41 +0000 (08:43 +0000)
livetest.py

index 497516fa01085f3deeaa8f6e8357b91d685b0542..9d1ef2d1c0cc41b28ddfad151a80afc53245e593 100755 (executable)
@@ -40,7 +40,7 @@ def test_list_folders(client):
 def test_select_and_close(client):
     resp = client.select_folder('INBOX')
     assert isinstance(resp['EXISTS'], int)
-    assert resp['EXISTS'] > 1
+    assert resp['EXISTS'] > 0
     assert isinstance(resp['RECENT'], int)
     assert isinstance(resp['FLAGS'], tuple)
     assert len(resp['FLAGS']) > 1