def test_to_string_definitions(self): config = MyServerConfig([ DefinitionElement('a'), DefinitionTree( definitions=[DefinitionElement('b'), DefinitionElement('c')]) ]) copy = MyServerConfig.from_lxml_element(config.to_lxml_element()) self.assertEqual(config, copy)
def test_to_string_definitions(self): config = MyServerConfig([DefinitionElement('a'), DefinitionTree( definitions = [DefinitionElement('b'), DefinitionElement('c')])]) copy = MyServerConfig.from_lxml_element(config.to_lxml_element()) self.assertEqual(config, copy)
def test_to_string(self): config = MyServerConfig() copy = MyServerConfig.from_lxml_element(config.to_lxml_element()) self.assertEqual(config, copy)
def test_to_string(self): config = MyServerConfig() copy = MyServerConfig.from_lxml_element(config.to_lxml_element()) self.assertEqual(config, copy)