Fix duplicate node names

Fix https://github.com/GNS3/gns3-gui/issues/1796
This commit is contained in:
Julien Duponchelle committed 2017-01-18 18:28:50 +01:00
1 parent e5dba5e66a
commit d74769c824
2 files changed
+5 -14

No files matched your search

+4
View File
@@ -76,6 +76,10 @@ def test_name(compute, project):
properties={"startup_script": "echo test"})
assert node.name == "PC2"
# If we change the name to a name already used we patch the name to a free
node.name == "PC1"
assert node.name == "PC2"
def test_eq(compute, project, node, controller):
assert node == Node(project, compute, "demo1", node_id=node.id, node_type="qemu")