Add test for unicode char in images path

Ref #401
This commit is contained in:
Julien Duponchelle committed 2016-01-26 15:32:40 +01:00
1 parent ee2104ba35
commit 119a2a3b66
4 files changed
+16 -12

No files matched your search

+2 -2
View File
@@ -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'