

def test_error_parser(self):
    error_xml = self.load_file('error.xml')
    expected = {
        'aux_code': '',
        'code': '400',
        'id': '149947',
        'message': 'No product selected. Need a productId or productCode.',
    }
    result = parse_error(error_xml)
    self.assertEquals(expected, result)

dataset/ETHPy150Open SeanOC/sharpy/tests/parser_tests.py ParserTests.test_error_parser/original