def test_alpha_2_country_codes(self, faker, num_samples):
    for _ in range(num_samples):
        country_code = faker.country_code(representation='alpha-2')
        assert (len(country_code) == 2)
        assert country_code.isalpha()
def test_alpha_2_country_codes(self, faker, num_samples):
    for _ in range(num_samples):
        country_code = faker.country_code(representation='alpha-2')
        assert (len(country_code) == 2)
        assert country_code.isalpha()