def test_get_request_query_params_by_kwarg(self):
    client = RequestsClient()
    response = client.get('http://testserver/', params={'key': 'value'})
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'method': 'GET', 'query_params': {'key': 'value'}}
    assert (response.json() == expected)
def test_get_request_query_params_by_kwarg(self):
    client = RequestsClient()
    response = client.get('http://testserver/', params={'key': 'value'})
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'method': 'GET', 'query_params': {'key': 'value'}}
    assert (response.json() == expected)