def test_postal_code_letter(self, faker, num_samples):
    for _ in range(num_samples):
        postal_code_letter = faker.postal_code_letter()
        assert isinstance(postal_code_letter, str)
        assert re.fullmatch(self.valid_postcode_letter_re, postal_code_letter)
def test_postal_code_letter(self, faker, num_samples):
    for _ in range(num_samples):
        postal_code_letter = faker.postal_code_letter()
        assert isinstance(postal_code_letter, str)
        assert re.fullmatch(self.valid_postcode_letter_re, postal_code_letter)