def __init__(self, key, secure=True, retry_delay=None, backoff=None, timeout=None): # override __init__ so that we can set secure of False for testing ConnectionKey.__init__(self, key, secure, timeout=timeout, retry_delay=retry_delay, backoff=backoff)
def request(self, action, params=None, data='', headers=None, method='GET'): if not headers: headers = {} if not params: params = {} # Override this method to prepend the api_context return ConnectionKey.request(self, self.api_context + action, params, data, headers, method)
def __init__(self, key, secure=True): # override __init__ so that we can set secure of False for testing ConnectionKey.__init__(self, key, secure)
def test_base_connection_key(self): ConnectionKey('foo')
def test_base_response(self): Response(MockResponse(status=200, body='foo'), ConnectionKey('foo'))
def test_base_connection_key(self): ConnectionKey("foo")