mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
Fix PEP8 warning E711 comparison to None
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
cd3b06fab0
commit
a39c8f4431
@ -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",
|
||||
|
Reference in New Issue
Block a user