def test_with_type(self): node._create_node(self.nodes, "id-test", "name-test", "type-test") assert_xml_equal( """ <nodes> <node id="id-test" uname="name-test" type="type-test" /> </nodes> """, etree_to_str(self.nodes))
def test_with_type(self): node._create_node(self.nodes, "id-test", "name-test", "type-test") assert_xml_equal( """ <nodes> <node id="id-test" uname="name-test" type="type-test" /> </nodes> """, etree_to_str(self.nodes) )
def test_minimal(self): new_node = node._create_node("id-test", "name-test") self.nodes.append(new_node) assert_xml_equal( """ <nodes> <node id="id-test" uname="name-test" /> </nodes> """, etree_to_str(self.nodes))