

def test_exists_miss_w_bound_client(self):
    PATH = ('projects/%s/managedZones/%s/changes/%s' % (self.PROJECT, self.ZONE_NAME, self.CHANGES_NAME))
    self._setUpConstants()
    conn = _Connection()
    client = _Client(project=self.PROJECT, connection=conn)
    zone = _Zone(client)
    changes = self._makeOne(zone)
    changes.name = self.CHANGES_NAME
    self.assertFalse(changes.exists())
    zone.assertEqual(len(conn._requested), 1)
    req = conn._requested[0]
    self.assertEqual(req['method'], 'GET')
    self.assertEqual(req['path'], ('/%s' % PATH))
    self.assertEqual(req['query_params'], {
        'fields': 'id',
    })

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/dns/test_changes.py TestChanges.test_exists_miss_w_bound_client/VarMisuse@92/128 `self`->`zone`