def test_city(self, faker, num_samples):
    city_pattern: Pattern = re.compile('.*?[市县]')
    for _ in range(num_samples):
        city = faker.city()
        assert isinstance(city, str)
        assert city_pattern.fullmatch(city)
def test_city(self, faker, num_samples):
    city_pattern: Pattern = re.compile('.*?[市县]')
    for _ in range(num_samples):
        city = faker.city()
        assert isinstance(city, str)
        assert city_pattern.fullmatch(city)