From fd0fb9720444b595a81b371915c04d5ae1e7e7d0 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 4 Jan 2016 09:28:12 +0100 Subject: [PATCH] Fix test --- tests/modules/docker/test_docker.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/modules/docker/test_docker.py b/tests/modules/docker/test_docker.py index 9fbb233b..ad6c0edb 100644 --- a/tests/modules/docker/test_docker.py +++ b/tests/modules/docker/test_docker.py @@ -121,10 +121,9 @@ def test_list_images(loop): with asyncio_patch("gns3server.modules.docker.Docker.query", return_value=response) as mock: images = loop.run_until_complete(asyncio.async(Docker.instance().list_images())) mock.assert_called_with("GET", "images/json", params={"all": 0}) - assert images == [ - {"image": "ubuntu:12.04"}, - {"image": "ubuntu:precise"}, - {"image": "ubuntu:latest"}, - {"image": "ubuntu:12.10"}, - {"image": "ubuntu:quantal"} - ] + assert len(images) == 5 + assert {"image": "ubuntu:12.04"} in images + assert {"image": "ubuntu:precise"} in images + assert {"image": "ubuntu:latest"} in images + assert {"image": "ubuntu:12.10"} in images + assert {"image": "ubuntu:quantal"} in images