summaryrefslogtreecommitdiff
path: root/python/samba/tests/password_hash.py
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-07-30 18:18:25 +1200
committerDouglas Bagnall <dbagnall@samba.org>2018-08-24 07:49:28 +0200
commit87bbc2df972d112870bb7d5c8839663affe62b21 (patch)
tree165519f190f9d8051c0f56406de925e8ed0c1cb4 /python/samba/tests/password_hash.py
parent32266d2d48c1c38e54bcfaf1cad36f09e9cff355 (diff)
downloadsamba-87bbc2df972d112870bb7d5c8839663affe62b21.tar.gz
PEP8: fix E226: missing whitespace around arithmetic operator
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>
Diffstat (limited to 'python/samba/tests/password_hash.py')
-rw-r--r--python/samba/tests/password_hash.py58
1 files changed, 29 insertions, 29 deletions
diff --git a/python/samba/tests/password_hash.py b/python/samba/tests/password_hash.py
index 745ac704c9f..bdb740d71ec 100644
--- a/python/samba/tests/password_hash.py
+++ b/python/samba/tests/password_hash.py
@@ -175,130 +175,130 @@ class PassWordHashTests(TestCase):
self.check_digest(USER_NAME,
self.netbios_domain,
USER_PASS,
- digests.hashes[1-1].hash)
+ digests.hashes[1 - 1].hash)
self.check_digest(USER_NAME.lower(),
self.netbios_domain.lower(),
USER_PASS,
- digests.hashes[2-1].hash)
+ digests.hashes[2 - 1].hash)
self.check_digest(USER_NAME.upper(),
self.netbios_domain.upper(),
USER_PASS,
- digests.hashes[3-1].hash)
+ digests.hashes[3 - 1].hash)
self.check_digest(USER_NAME,
self.netbios_domain.upper(),
USER_PASS,
- digests.hashes[4-1].hash)
+ digests.hashes[4 - 1].hash)
self.check_digest(USER_NAME,
self.netbios_domain.lower(),
USER_PASS,
- digests.hashes[5-1].hash)
+ digests.hashes[5 - 1].hash)
self.check_digest(USER_NAME.upper(),
self.netbios_domain.lower(),
USER_PASS,
- digests.hashes[6-1].hash)
+ digests.hashes[6 - 1].hash)
self.check_digest(USER_NAME.lower(),
self.netbios_domain.upper(),
USER_PASS,
- digests.hashes[7-1].hash)
+ digests.hashes[7 - 1].hash)
self.check_digest(USER_NAME,
self.dns_domain,
USER_PASS,
- digests.hashes[8-1].hash)
+ digests.hashes[8 - 1].hash)
self.check_digest(USER_NAME.lower(),
self.dns_domain.lower(),
USER_PASS,
- digests.hashes[9-1].hash)
+ digests.hashes[9 - 1].hash)
self.check_digest(USER_NAME.upper(),
self.dns_domain.upper(),
USER_PASS,
- digests.hashes[10-1].hash)
+ digests.hashes[10 - 1].hash)
self.check_digest(USER_NAME,
self.dns_domain.upper(),
USER_PASS,
- digests.hashes[11-1].hash)
+ digests.hashes[11 - 1].hash)
self.check_digest(USER_NAME,
self.dns_domain.lower(),
USER_PASS,
- digests.hashes[12-1].hash)
+ digests.hashes[12 - 1].hash)
self.check_digest(USER_NAME.upper(),
self.dns_domain.lower(),
USER_PASS,
- digests.hashes[13-1].hash)
+ digests.hashes[13 - 1].hash)
self.check_digest(USER_NAME.lower(),
self.dns_domain.upper(),
USER_PASS,
- digests.hashes[14-1].hash)
+ digests.hashes[14 - 1].hash)
self.check_digest(UPN,
"",
USER_PASS,
- digests.hashes[15-1].hash)
+ digests.hashes[15 - 1].hash)
self.check_digest(UPN.lower(),
"",
USER_PASS,
- digests.hashes[16-1].hash)
+ digests.hashes[16 - 1].hash)
self.check_digest(UPN.upper(),
"",
USER_PASS,
- digests.hashes[17-1].hash)
+ digests.hashes[17 - 1].hash)
name = "%s\\%s" % (self.netbios_domain, USER_NAME)
self.check_digest(name,
"",
USER_PASS,
- digests.hashes[18-1].hash)
+ digests.hashes[18 - 1].hash)
name = "%s\\%s" % (self.netbios_domain.lower(), USER_NAME.lower())
self.check_digest(name,
"",
USER_PASS,
- digests.hashes[19-1].hash)
+ digests.hashes[19 - 1].hash)
name = "%s\\%s" % (self.netbios_domain.upper(), USER_NAME.upper())
self.check_digest(name,
"",
USER_PASS,
- digests.hashes[20-1].hash)
+ digests.hashes[20 - 1].hash)
self.check_digest(USER_NAME,
"Digest",
USER_PASS,
- digests.hashes[21-1].hash)
+ digests.hashes[21 - 1].hash)
self.check_digest(USER_NAME.lower(),
"Digest",
USER_PASS,
- digests.hashes[22-1].hash)
+ digests.hashes[22 - 1].hash)
self.check_digest(USER_NAME.upper(),
"Digest",
USER_PASS,
- digests.hashes[23-1].hash)
+ digests.hashes[23 - 1].hash)
self.check_digest(UPN,
"Digest",
USER_PASS,
- digests.hashes[24-1].hash)
+ digests.hashes[24 - 1].hash)
self.check_digest(UPN.lower(),
"Digest",
USER_PASS,
- digests.hashes[25-1].hash)
+ digests.hashes[25 - 1].hash)
self.check_digest(UPN.upper(),
"Digest",
USER_PASS,
- digests.hashes[26-1].hash)
+ digests.hashes[26 - 1].hash)
name = "%s\\%s" % (self.netbios_domain, USER_NAME)
self.check_digest(name,
"Digest",
USER_PASS,
- digests.hashes[27-1].hash)
+ digests.hashes[27 - 1].hash)
name = "%s\\%s" % (self.netbios_domain.lower(), USER_NAME.lower())
self.check_digest(name,
"Digest",
USER_PASS,
- digests.hashes[28-1].hash)
+ digests.hashes[28 - 1].hash)
name = "%s\\%s" % (self.netbios_domain.upper(), USER_NAME.upper())
self.check_digest(name,
"Digest",
USER_PASS,
- digests.hashes[29-1].hash)
+ digests.hashes[29 - 1].hash)
def checkUserPassword(self, up, expected):