Fix PEP8 warning E711 comparison to None
authorTim Beale <timbeale@catalyst.net.nz>
Fri, 27 Jul 2018 01:33:26 +0000 (13:33 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Aug 2018 00:58:26 +0000 (02:58 +0200)
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/tests/python/password_settings.py

index 9bd536592af183e09e4fb7e4efc582c947c248f4..8e04b8513a53333d38b5569ca0e69f932524b230 100644 (file)
@@ -593,7 +593,7 @@ class PasswordSettingsTestCase(PasswordTestCase):
         self.set_attribute(user.dn, "userAccountControl",
                            str(dsdb.UF_WORKSTATION_TRUST_ACCOUNT),
                            operation=FLAG_MOD_REPLACE)
-        self.assertTrue(user.get_resultant_PSO() == None)
+        self.assertIsNone(user.get_resultant_PSO())
 
         # reset it back to a normal user account
         self.set_attribute(user.dn, "userAccountControl",