

def _servers_localhost_zones(self, method, url, body, headers):
    if (method == 'GET'):
        body = url.fixtures.load('list_zones.json')
    elif (method == 'POST'):
        body = ''
    else:
        raise NotImplementedError(('Unexpected method: %s' % method))
    return (httplib.OK, body, self.base_headers, httplib.responses[httplib.OK])

dataset/ETHPy150Open apache/libcloud/libcloud/test/dns/test_powerdns.py PowerDNSMockHttp._servers_localhost_zones/VarMisuse@29/37 `self`->`url`