|
@@ -66,6 +66,10 @@ class BlobReadTests(unittest.TestCase):
|
|
|
self.assertEqual(b.data, 'test 1\n')
|
|
|
self.assertEqual(b.sha().hexdigest(), a_sha)
|
|
|
|
|
|
+ def test_hash(self):
|
|
|
+ b = self.get_blob(a_sha)
|
|
|
+ self.assertEqual(hash(b.id), hash(b))
|
|
|
+
|
|
|
def test_parse_empty_blob_object(self):
|
|
|
sha = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'
|
|
|
b = self.get_blob(sha)
|