def test_json(self):
    'json response.'
    patcher = patch.object(httpclient, 'json_loads')
    mock_json_loads = patcher.start()
    mock_json_loads.return_value = {}
    self.headers.append(('content-type', 'application/json; charset=UTF-8'))
    self.mock_response.read.return_value = '{}'.encode('utf-8')
    self.client.get('auth/token')
    assert ({} == self.client.json)
    patcher.stop()
json response.
def test_json(self):
    
    patcher = patch.object(httpclient, 'json_loads')
    mock_json_loads = patcher.start()
    mock_json_loads.return_value = {}
    self.headers.append(('content-type', 'application/json; charset=UTF-8'))
    self.mock_response.read.return_value = '{}'.encode('utf-8')
    self.client.get('auth/token')
    assert ({} == self.client.json)
    patcher.stop()