Exemplo n.º 1
0
 def test_to_lxml_attributes(self):
     definition = DefinitionElement(attributes = {'a': 'b', 'b': 'c', 'value': 'x'})
     copy = DefinitionElement.from_lxml_element(definition.to_lxml_element())
     self.assertEqual(definition, copy)
Exemplo n.º 2
0
 def test_to_lxml_full(self):
     definition = DefinitionElement('test', {'value': 'x', 'a': 'b'})
     copy = DefinitionElement.from_lxml_element(definition.to_lxml_element())
     self.assertEqual(definition, copy)
Exemplo n.º 3
0
 def test_to_lxml_name(self):
     definition = DefinitionElement(name = 'test')
     copy = DefinitionElement.from_lxml_element(definition.to_lxml_element())
     self.assertEqual(definition, copy)