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