Пример #1
0
 def test_is_hash_sha512(self):
     hc = HashChecker()
     self.assertTrue(hc.is_hash(self.hashtest_sha512_hash))
     self.assertEqual(hc.hash_type, "sha512")
Пример #2
0
 def test_is_not_hash_bogusstring(self):
     hc = HashChecker()
     self.assertFalse(hc.is_hash(self.fake_hash))
     self.assertEqual(hc.hash_type, "")
Пример #3
0
 def test_is_hash_md5(self):
     hc = HashChecker()
     self.assertTrue(hc.is_hash(self.hashtest_md5_hash))
     self.assertEqual(hc.hash_type, "md5")