Reload a topology work

This commit is contained in:
Julien Duponchelle committed 2016-06-15 16:26:16 +02:00
1 parent 524f8991bc
commit 6d36429870
14 files changed
+167 -34

No files matched your search

+14
View File
@@ -70,6 +70,20 @@ def test_json(node, compute):
"symbol": node.symbol,
"label": node.label
}
assert node.__json__(topology_dump=True) == {
"compute_id": str(compute.id),
"node_id": node.id,
"node_type": node.node_type,
"name": "demo",
"console": node.console,
"console_type": node.console_type,
"properties": node.properties,
"x": node.x,
"y": node.y,
"z": node.z,
"symbol": node.symbol,
"label": node.label
}
def test_init_without_uuid(project, compute):