def test_postalcode(self, faker, num_samples):
    for _ in range(num_samples):
        postalcode = faker.postalcode()
        assert (isinstance(postalcode, str) and (len(postalcode) == 5))
        assert (501 <= int(postalcode) <= 99950)
def test_postalcode(self, faker, num_samples):
    for _ in range(num_samples):
        postalcode = faker.postalcode()
        assert (isinstance(postalcode, str) and (len(postalcode) == 5))
        assert (501 <= int(postalcode) <= 99950)