def test_post_form_request(self):
    client = RequestsClient()
    response = client.post('http://testserver/', data={'key': 'value'})
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'method': 'POST', 'query_params': {}, 'POST': {'key': 'value'}, 'FILES': {}, 'JSON': None}
    assert (response.json() == expected)
def test_post_form_request(self):
    client = RequestsClient()
    response = client.post('http://testserver/', data={'key': 'value'})
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'method': 'POST', 'query_params': {}, 'POST': {'key': 'value'}, 'FILES': {}, 'JSON': None}
    assert (response.json() == expected)