Remove asssert in OLI test 3
We cannot use this assert, becasue the returned value of res is: ERROR: getfolder() asked for a nonexisting folder 'INBOX.OLItest'. ERROR: Exceptions occurred during the run! ERROR: getfolder() asked for a nonexisting folder 'INBOX.OLItest'. So, if we have an assert, to compare if the string is empty, the test stops here. We can check if we have or not folder in the next check (count_maildir_mails().
This commit is contained in:
parent
a3aaa19d79
commit
2b2994d68e
@ -81,7 +81,6 @@ class TestBasicFunctions(unittest.TestCase):
|
|||||||
code, res = OLITestLib.run_OLI()
|
code, res = OLITestLib.run_OLI()
|
||||||
if 'unallowed folder' in res:
|
if 'unallowed folder' in res:
|
||||||
raise unittest.SkipTest("remote server doesn't handle quote")
|
raise unittest.SkipTest("remote server doesn't handle quote")
|
||||||
self.assertEqual(res, "")
|
|
||||||
boxes, mails = OLITestLib.count_maildir_mails('')
|
boxes, mails = OLITestLib.count_maildir_mails('')
|
||||||
self.assertTrue((boxes, mails) == (1, 0),
|
self.assertTrue((boxes, mails) == (1, 0),
|
||||||
msg="Expected 1 folders and 0 "
|
msg="Expected 1 folders and 0 "
|
||||||
|
Loading…
Reference in New Issue
Block a user