mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
1 parent
ee2104ba35
commit
119a2a3b66
4 files changed
+16
-12
No files matched your search
@@ -21,13 +21,13 @@ from gns3server.utils.images import md5sum, remove_checksum
|
||||
|
||||
|
||||
def test_md5sum(tmpdir):
|
||||
fake_img = str(tmpdir / 'hello')
|
||||
fake_img = str(tmpdir / 'hello载')
|
||||
|
||||
with open(fake_img, 'w+') as f:
|
||||
f.write('hello')
|
||||
|
||||
assert md5sum(fake_img) == '5d41402abc4b2a76b9719d911017c592'
|
||||
with open(str(tmpdir / 'hello.md5sum')) as f:
|
||||
with open(str(tmpdir / 'hello载.md5sum')) as f:
|
||||
assert f.read() == '5d41402abc4b2a76b9719d911017c592'
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user