Fix test on Travis with Python 3.3

This commit is contained in:
Julien Duponchelle committed 2015-02-13 11:02:56 +01:00
1 parent 0a5aaedc7c
commit b419001813
2 files changed
+5 -7

No files matched your search

+3 -5
View File
@@ -55,15 +55,13 @@ def test_create_project_with_uuid(server):
def test_show_project(server):
query = {"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f", "path": "/tmp", "temporary": False}
with patch("gns3server.config.Config.get_section_config", return_value={"local": True}):
response = server.post("/projects", query)
assert response.status == 200
query = {"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f", "temporary": False}
response = server.post("/projects", query)
assert response.status == 200
response = server.get("/projects/00010203-0405-0607-0809-0a0b0c0d0e0f", example=True)
assert len(response.json.keys()) == 4
assert len(response.json["location"]) > 0
assert response.json["project_id"] == "00010203-0405-0607-0809-0a0b0c0d0e0f"
assert response.json["path"] == "/tmp"
assert response.json["temporary"] is False