def test_parse_commands_multi_commands_multi_elements(self): xml_parser = XmlParser( join(self.xmls_path, 'multi_commands_multi_elements.xml')) ret_val = [vars(x) for x in xml_parser.parse_commands()] self.assertEqual(ret_val, [vars(x) for x in self.multi_commands_multi_elements]), \ 'test_parse_commands_multi_commands_multi_elements'
def test_parse_commands_one_command_one_element(self): xml_parser = XmlParser( join(self.xmls_path, 'one_command_one_element.xml')) ret_val = [vars(x) for x in xml_parser.parse_commands()] self.assertEqual(ret_val, [vars(x) for x in self.one_command_one_element]), \ 'test_parse_commands_one_command_one_element'