def test_phone_number(self): s = StringIO(test_parse_me.sample1) r = real_parser(s) self.assertEqual("805-966-3001", r.get("phone_number", "no phone_number"))
def test_zipcode(self): s = StringIO(test_parse_me.sample1) r = real_parser(s) self.assertEqual("93103", r.get("zipcode", "no zipcode"))
def test_date(self): s = StringIO(test_parse_me.sample1) r = real_parser(s) self.assertEqual("2010-01-07 16:01:48", r.get("date", "no date"))
def test_address(self): s = StringIO(test_parse_me.sample1) r = real_parser(s) self.assertEqual("609 N MILPAS ST", r.get("address", "no address"))
def test_store_number(self): s = StringIO(test_parse_me.sample1) r = real_parser(s) self.assertEqual(11476, r.get("store_number", "no store_number"))