mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
2 files changed
+22
-6
No files matched your search
@@ -81,6 +81,18 @@ def test_name(compute, project):
|
||||
assert node.name == "PC2"
|
||||
|
||||
|
||||
def test_vmname(compute, project):
|
||||
"""
|
||||
Additionnal properties should add to the properties
|
||||
field
|
||||
"""
|
||||
node = Node(project, compute, "PC",
|
||||
node_id=str(uuid.uuid4()),
|
||||
node_type="virtualbox",
|
||||
vmname="test")
|
||||
assert node.properties["vmname"] == "test"
|
||||
|
||||
|
||||
def test_eq(compute, project, node, controller):
|
||||
assert node == Node(project, compute, "demo1", node_id=node.id, node_type="qemu")
|
||||
assert node != "a"
|
||||
|
||||
Reference in new issue
Block a user