def test_get(self):
    self.mock_response.status = 200
    assert (200 == self.client.get('auth/token'))
    assert self.mock_c.connect.called
    assert self.mock_c.request.called
    (method, path, body, headers) = self.mock_c.request.call_args[0]
    assert ('GET' == method)
    assert ('/api/v1/auth/token' == path)
    assert ('' == body)
    assert (self.client.default_headers == headers)
    assert ('gzip' == headers['Accept-Encoding'])
    assert ('close' == headers['Connection'])
    assert (3 == len(headers))
def test_get(self):
    self.mock_response.status = 200
    assert (200 == self.client.get('auth/token'))
    assert self.mock_c.connect.called
    assert self.mock_c.request.called
    (method, path, body, headers) = self.mock_c.request.call_args[0]
    assert ('GET' == method)
    assert ('/api/v1/auth/token' == path)
    assert ( == body)
    assert (self.client.default_headers == headers)
    assert ('gzip' == headers['Accept-Encoding'])
    assert ('close' == headers['Connection'])
    assert (3 == len(headers))