def test_autotype_sha1(self):
        h = Hash(EMPTY_SHA1)
        self.assertEqual(h.type_, Hash.TYPE_SHA1)

        h2 = Hash(self.sha1)
        self.assertEqual(h2.type_, Hash.TYPE_SHA1)
40-character hash is assumed to be SHA-1
dataset/ETHPy150Open CybOXProject/python-cybox/cybox/test/common/hash_test.py/TestHash.test_autotype_sha1