def test_ban(self, faker, num_samples):
    for _ in range(num_samples):
        ban = faker.ban()
        assert isinstance(ban, str)
        match = re.fullmatch('(?P<ban_number>\\d{1,2})番', ban)
        assert match
        assert (1 <= int(match.group('ban_number')) <= 27)
def test_ban(self, faker, num_samples):
    for _ in range(num_samples):
        ban = faker.ban()
        assert isinstance(ban, str)
        match = re.fullmatch('(?P<ban_number>\\d{1,2})番', ban)
        assert match
        assert (1 <= int(match.group('ban_number')) <= 27)