test/ files singleton-comparison

This patch change these errors in the test folder

C0121: Comparison to None should be 'expr is None' (singleton-comparison)
C0121: Comparison to None should be 'expr is not None' (singleton-comparison)
This commit is contained in:
Rodolfo García Peñas (kix)
2020-08-30 11:31:42 +02:00
parent 1a529b6b0e
commit a6abf2d36f
2 changed files with 9 additions and 9 deletions

View File

@ -128,7 +128,7 @@ class TestBasicFunctions(unittest.TestCase):
uids = OLITestLib.get_maildir_uids('INBOX.OLItest')
self.assertFalse(None in uids, msg="All mails should have been " + \
"assigned the IMAP's UID number, but {0} messages had no valid ID " \
.format(len([None for x in uids if x == None])))
.format(len([None for x in uids if x is None])))
def test_06_createfolders(self):
"""Test if createfolders works as expected