def test_empty(self): self.assertEqual(parser.parse_postal_code(''), '')
def test_valid(self): self.assertEqual(parser.parse_postal_code('00510'), '00510') self.assertEqual(parser.parse_postal_code('00510 FooBar'), '00510')