示例#1
0
 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"))
示例#2
0
 def test_zipcode(self):
     s = StringIO(test_parse_me.sample1)
     r = real_parser(s)
     self.assertEqual("93103", r.get("zipcode", "no zipcode"))
示例#3
0
 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"))
示例#4
0
 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"))
示例#5
0
 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"))