未验证 提交 ea3fea18 编写于 作者: 😸 😸

test_daklib_dakapt.py: open file for `DakHashes`

上级 7bf39e0d
......@@ -26,7 +26,7 @@ import daklib.dakapt
class TestDakHashes(DakTestCase):
def testDakHashes(self):
hashes = daklib.dakapt.DakHashes("/dev/null")
hashes = daklib.dakapt.DakHashes(open("/dev/null"))
self.assertEqual(hashes.md5, "d41d8cd98f00b204e9800998ecf8427e")
self.assertEqual(hashes.sha1, "da39a3ee5e6b4b0d3255bfef95601890afd80709")
self.assertEqual(hashes.sha256, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册