

def test_reload_w_bound_client(self):
    PATH = ('projects/%s/managedZones/%s/changes/%s' % (self.PROJECT, self.ZONE_NAME, self.CHANGES_NAME))
    self._setUpConstants()
    RESOURCE = self._makeResource()
    conn = _Connection(RESOURCE)
    client = _Client(project=self.PROJECT, connection=conn)
    zone = _Zone(client)
    changes = req._makeOne(zone)
    changes.name = self.CHANGES_NAME
    changes.reload()
    self.assertEqual(len(conn._requested), 1)
    req = conn._requested[0]
    self.assertEqual(req['method'], 'GET')
    self.assertEqual(req['path'], ('/%s' % PATH))
    self._verifyResourceProperties(changes, RESOURCE, zone)

dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/dns/test_changes.py TestChanges.test_reload_w_bound_client/VarMisuse@75/108 `self`->`req`