]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests password_hash: fix white space issues
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 11 Apr 2017 21:09:27 +0000 (09:09 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 25 May 2017 00:25:12 +0000 (02:25 +0200)
Clean up white space issues in password_hash.py

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/password_hash.py

index b50242e998accf3228ce673caddeeeb3813b49de..de110cfcb07ef0a5d34ad70b6663c86b400c7286 100644 (file)
@@ -36,7 +36,7 @@ import md5
 
 
 USER_NAME = "PasswordHashTestUser"
-USER_PASS = samba.generate_random_password(32,32)
+USER_PASS = samba.generate_random_password(32, 32)
 UPN       = "PWHash@User.Principle"
 
 # Get named package from the passed supplemental credentials
@@ -73,7 +73,7 @@ class PassWordHashTests(TestCase):
         self.lp = samba.tests.env_loadparm()
         # set any needed options
         if options is not None:
-            for (option,value) in options:
+            for (option, value) in options:
                 self.lp.set(option, value)
 
         self.creds = Credentials()
@@ -139,7 +139,7 @@ class PassWordHashTests(TestCase):
         res = self.ldb.search(scope=ldb.SCOPE_BASE,
                               base=base,
                               attrs=["supplementalCredentials"])
-        self.assertIs( True, len(res) > 0)
+        self.assertIs(True, len(res) > 0)
         obj = res[0]
         sc_blob = obj["supplementalCredentials"][0]
         sc = ndr_unpack(drsblobs.supplementalCredentialsBlob, sc_blob)
@@ -147,7 +147,7 @@ class PassWordHashTests(TestCase):
 
     # Calculate and validate a Wdigest value
     def check_digest(self, user, realm, password,  digest):
-        expected = calc_digest( user, realm, password)
+        expected = calc_digest(user, realm, password)
         actual = binascii.hexlify(bytearray(digest))
         error = "Digest expected[%s], actual[%s], " \
                 "user[%s], realm[%s], pass[%s]" % \