def test_chome(self, faker, num_samples):
    for _ in range(num_samples):
        chome = faker.chome()
        assert isinstance(chome, str)
        match = re.fullmatch('(?P<chome_number>\\d{1,2})丁目', chome)
        assert match
        assert (1 <= int(match.group('chome_number')) <= 42)
def test_chome(self, faker, num_samples):
    for _ in range(num_samples):
        chome = faker.chome()
        assert isinstance(chome, str)
        match = re.fullmatch('(?P<chome_number>\\d{1,2})丁目', chome)
        assert match
        assert (1 <= int(match.group('chome_number')) <= 42)