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