def test_post_multipart_request(self):
    client = RequestsClient()
    files = {'file': ('report.csv', 'some,data,to,send\nanother,row,to,send\n')}
    response = client.post('http://testserver/', files=files)
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'method': 'POST', 'query_params': {}, 'FILES': {'file': ['report.csv', 'some,data,to,send\nanother,row,to,send\n']}, 'POST': {}, 'JSON': None}
    assert (response.json() == expected)
def test_post_multipart_request(self):
    client = RequestsClient()
    files = {'file': ('report.csv', 'some,data,to,send\nanother,row,to,send\n')}
    response = client.post('http://testserver/', files=files)
    assert (response.status_code == 200)
    assert (response.headers['Content-Type'] == 'application/json')
    expected = {'method': 'POST', 'query_params': {}, 'FILES': {'file': ['report.csv', 'some,data,to,send\nanother,row,to,send\n']}, 'POST': {}, 'JSON': None}
    assert (response.json() == expected)