Address more pylint and py3 compatibility problems
This commit is contained in:
1 parent
dcb2845ac4
commit
c353d8bb86
6 files changed
+63
-55
No files matched your search
@@ -9,8 +9,7 @@ class Hashing(unittest.TestCase):
|
||||
'simon': '88e16a1019277b15d58faf0541e11910eb756f6'}
|
||||
|
||||
def test_hashing(self):
|
||||
for input_value in self.test_data.iterkeys():
|
||||
for input_value, result in self.test_data.items():
|
||||
sha1_hash = hashlib.sha1()
|
||||
sha1_hash.update(input_value)
|
||||
self.assertEquals(minecraft_sha1_hash_digest(sha1_hash),
|
||||
self.test_data[input_value])
|
||||
sha1_hash.update(input_value.encode('utf-8'))
|
||||
self.assertEquals(minecraft_sha1_hash_digest(sha1_hash), result)
|
||||
Reference in new issue
Block a user