Fix naming of node with a number in the name

Fix #1149
This commit is contained in:
Julien Duponchelle committed 2017-07-27 16:06:52 +02:00
1 parent fc6b6b5e63
commit 283b08c2a1
2 files changed
+5 -1

No files matched your search

+3
View File
@@ -602,6 +602,9 @@ def test_node_name(project, async_run):
node = async_run(project.add_node(compute, "VPCS-1", None, node_type="vpcs", properties={"startup_config": "test.cfg"}))
assert node.name == "VPCS-2"
node = async_run(project.add_node(compute, "R3", None, node_type="vpcs", properties={"startup_config": "test.cfg"}))
assert node.name == "R3"
def test_add_iou_node_and_check_if_gets_application_id(project, async_run):
compute = MagicMock()