From 0df997d2327491fe79f765a7f9e5eef57579040c Mon Sep 17 00:00:00 2001 From: grossmj Date: Sun, 17 Dec 2017 23:06:19 +0100 Subject: [PATCH] Fix tests. --- tests/compute/test_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/compute/test_manager.py b/tests/compute/test_manager.py index 1cb85f81..6c5f4feb 100644 --- a/tests/compute/test_manager.py +++ b/tests/compute/test_manager.py @@ -230,8 +230,8 @@ def test_list_images(loop, qemu, tmpdir): with patch("gns3server.utils.images.default_images_directory", return_value=str(tmpdir)): assert loop.run_until_complete(qemu.list_images()) == [ - {"filename": "a.qcow2", "path": "a.qcow2", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1}, - {"filename": "b.qcow2", "path": "b.qcow2", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1} + {"filename": "b.qcow2", "path": "b.qcow2", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1}, + {"filename": "a.qcow2", "path": "a.qcow2", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1} ] @@ -250,8 +250,8 @@ def test_list_images_recursives(loop, qemu, tmpdir): with patch("gns3server.utils.images.default_images_directory", return_value=str(tmpdir)): assert loop.run_until_complete(qemu.list_images()) == [ - {"filename": "a.qcow2", "path": "a.qcow2", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1}, {"filename": "b.qcow2", "path": "b.qcow2", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1}, + {"filename": "a.qcow2", "path": "a.qcow2", "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1}, {"filename": "c.qcow2", "path": force_unix_path(os.path.sep.join(["c", "c.qcow2"])), "md5sum": "c4ca4238a0b923820dcc509a6f75849b", "filesize": 1} ]