def test_town(self, faker, num_samples):
    for _ in range(num_samples):
        town = faker.town()
        assert isinstance(town, str)
        assert (town in JaJpAddressProvider.towns)
def test_town(self, faker, num_samples):
    for _ in range(num_samples):
        town = faker.town()
        assert isinstance(town, str)
        assert (town in JaJpAddressProvider.towns)