Fix minor errors reported by codacy.com

This commit is contained in:
Julien Duponchelle committed 2015-11-03 12:34:22 +01:00
1 parent a961387af9
commit bd54c55ae1
5 files changed
+7 -17

No files matched your search

+4 -4
View File
@@ -144,10 +144,10 @@ def test_backup_images(server, tmpdir, loop):
tar.close()
assert os.path.exists(os.path.join('QEMU', 'a.img'))
open(os.path.join('QEMU', 'a.img')).read() == 'hello'
assert open(os.path.join('QEMU', 'a.img')).read() == 'hello'
assert os.path.exists(os.path.join('QEMU', 'b.img'))
open(os.path.join('QEMU', 'b.img')).read() == 'world'
assert open(os.path.join('QEMU', 'b.img')).read() == 'world'
def test_backup_projects(server, tmpdir, loop):
@@ -176,7 +176,7 @@ def test_backup_projects(server, tmpdir, loop):
tar.close()
assert os.path.exists(os.path.join('a', 'a.gns3'))
open(os.path.join('a', 'a.gns3')).read() == 'hello'
assert open(os.path.join('a', 'a.gns3')).read() == 'hello'
assert os.path.exists(os.path.join('b', 'b.gns3'))
open(os.path.join('b', 'b.gns3')).read() == 'world'
assert open(os.path.join('b', 'b.gns3')).read() == 'world'