tests: make tests (nearly) work with python3

Tests work now with python 3 with the exception of the deletion of remote
testfolders which fails for some reasons.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-02-17 14:57:11 +01:00
parent d0723fb8a2
commit d1e6e1f09e
4 changed files with 22 additions and 15 deletions

View File

@ -65,7 +65,7 @@ class TestBasicFunctions(unittest.TestCase):
code, res = OLITestLib.run_OLI()
self.assertEqual(res, "")
boxes, mails = OLITestLib.count_maildir_mails('')
self.assertTrue((boxes, mails)==(0,0), msg="Expected 0 folders and 0"
self.assertTrue((boxes, mails)==(0,0), msg="Expected 0 folders and 0 "
"mails, but sync led to {} folders and {} mails".format(
boxes, mails))