def test_region(self, faker, num_samples):
    region_pattern: Pattern = re.compile('(?:респ\\. (?P<region_republic>.*))|(?:(?P<region_krai>.*?) край)|(?:(?P<region_oblast>.*?) обл.)|(?:(?P<region_ao>.*?) АО)')
    for _ in range(num_samples):
        region = faker.region()
        assert isinstance(region, str)
        match = region_pattern.fullmatch(region)
        assert match
        groupdict = match.groupdict()
        assert any([(groupdict.get('region_republic') in RuRuAddressProvider.region_republics), (groupdict.get('region_krai') in RuRuAddressProvider.region_krai), (groupdict.get('region_oblast') in RuRuAddressProvider.region_oblast), (groupdict.get('region_ao') in RuRuAddressProvider.region_ao)])
def test_region(self, faker, num_samples):
    region_pattern: Pattern = re.compile('(?:респ\\. (?P<region_republic>.*))|(?:(?P<region_krai>.*?) край)|(?:(?P<region_oblast>.*?) обл.)|(?:(?P<region_ao>.*?) АО)')
    for _ in range(num_samples):
        region = faker.region()
        assert isinstance(region, str)
        match = region_pattern.fullmatch(region)
        assert match
        groupdict = match.groupdict()
        assert any([(groupdict.get('region_republic') in RuRuAddressProvider.region_republics), (groupdict.get('region_krai') in RuRuAddressProvider.region_krai), (groupdict.get('region_oblast') in RuRuAddressProvider.region_oblast), (groupdict.get('region_ao') in RuRuAddressProvider.region_ao)])