def test_postalcode(self, faker, num_samples):
    for _ in range(num_samples):
        postalcode = faker.postalcode()
        assert isinstance(postalcode, str)
        assert re.fullmatch(self.valid_postcode_re, postalcode)
def test_postalcode(self, faker, num_samples):
    for _ in range(num_samples):
        postalcode = faker.postalcode()
        assert isinstance(postalcode, str)
        assert re.fullmatch(self.valid_postcode_re, postalcode)