def test_postcode(self, faker, num_samples):
    for _ in range(num_samples):
        postcode = faker.postcode()
        assert isinstance(postcode, str)
        assert re.fullmatch('\\d{6}', postcode)
def test_postcode(self, faker, num_samples):
    for _ in range(num_samples):
        postcode = faker.postcode()
        assert isinstance(postcode, str)
        assert re.fullmatch('\\d{6}', postcode)