'Ensure that requests with a generator body stream using
Transfer-Encoding: chunked, not a Content-Length header.'

def test_chunked_upload_does_not_set_content_length_header(self, httpbin):

    data = (i for i in ['a', 'b', 'c'])
    url = httpbin('post')
    r = requests.Request('POST', url, data=data)
    prepared_request = r.prepare()
    assert ('Transfer-Encoding' in prepared_request.headers)
    assert ('Content-Length' not in prepared_request.headers)
