def test_canton_code(self, faker, num_samples):
    for _ in range(num_samples):
        canton_code = faker.canton_code()
        assert isinstance(canton_code, str)
        assert any(((canton_code == cantons[0]) for cantons in DeChAddressProvider.cantons))
def test_canton_code(self, faker, num_samples):
    for _ in range(num_samples):
        canton_code = faker.canton_code()
        assert isinstance(canton_code, str)
        assert any(((canton_code == cantons[0]) for cantons in DeChAddressProvider.cantons))