Remove asssert in OLI test 2
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
3231e731d8
commit
a3aaa19d79
@ -65,7 +65,6 @@ class TestBasicFunctions(unittest.TestCase):
|
|||||||
OLITestLib.delete_maildir('') # Delete all local maildir folders
|
OLITestLib.delete_maildir('') # Delete all local maildir folders
|
||||||
OLITestLib.create_maildir('INBOX.OLItest 1')
|
OLITestLib.create_maildir('INBOX.OLItest 1')
|
||||||
code, res = OLITestLib.run_OLI()
|
code, res = OLITestLib.run_OLI()
|
||||||
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