def test_is_hash_sha512(self): hc = HashChecker() self.assertTrue(hc.is_hash(self.hashtest_sha512_hash)) self.assertEqual(hc.hash_type, "sha512")
def test_is_not_hash_bogusstring(self): hc = HashChecker() self.assertFalse(hc.is_hash(self.fake_hash)) self.assertEqual(hc.hash_type, "")
def test_is_hash_md5(self): hc = HashChecker() self.assertTrue(hc.is_hash(self.hashtest_md5_hash)) self.assertEqual(hc.hash_type, "md5")