def node(): tmpnode = Node('testnode') tmpnode.setId(1234) return tmpnode
def test_empty_node(): assert not Node().getName()
def test_node_setBootFrom(): with pytest.raises(ValueError): Node(name='mike').setBootFrom('mmmm')