Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 def test_to_string(self):
     config = MyServerConfig()
     copy = MyServerConfig.from_lxml_element(config.to_lxml_element())
     self.assertEqual(config, copy)
Example #4
0
 def test_to_string(self):
     config = MyServerConfig()
     copy = MyServerConfig.from_lxml_element(config.to_lxml_element())
     self.assertEqual(config, copy)