def test_parse_address_bad_field(self): an_address = {} parsed_address = {} address.fill(parsed_address, BAD_ADDRESS_FIELD, '') self.assertEqual(parsed_address, an_address)
def test_parse_address_unknown_field(self): an_address = {} parsed_address = {} address.fill(parsed_address, UNKNOWN_ADDRESS_FIELD, '') self.assertEqual(parsed_address, an_address)
def test_parse_address(self): an_address = {} an_address['city'] = ONE_GOOD_CITY parsed_address = {} address.fill(parsed_address, 'addr:city', ONE_GOOD_CITY) self.assertEqual(parsed_address, an_address)