diff options
| author | Nate Prewitt <Nate.Prewitt@gmail.com> | 2016-12-04 12:11:09 -0700 |
|---|---|---|
| committer | Nate Prewitt <Nate.Prewitt@gmail.com> | 2016-12-04 12:11:09 -0700 |
| commit | 13716728e757a22ccdb700c5c7db52c8be33d034 (patch) | |
| tree | 44d0bea78b3f44db7b0d2e225292130776d09e10 /tests | |
| parent | 14d71fd41a31d0ce275c33e59c86d767c9c3768b (diff) | |
| download | python-requests-13716728e757a22ccdb700c5c7db52c8be33d034.tar.gz | |
minor doc string cleanup
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test_requests.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_requests.py b/tests/test_requests.py index a4e4eb61..49417717 100755 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -1695,7 +1695,7 @@ class TestRequests: def test_empty_stream_with_auth_does_not_set_content_length_header(self, httpbin): """Ensure that a byte stream with size 0 will not set both a Content-Length - and Transfer-Encoding header + and Transfer-Encoding header. """ auth = ('user', 'pass') url = httpbin('post') @@ -1707,7 +1707,8 @@ class TestRequests: def test_stream_with_auth_does_not_set_transfer_encoding_header(self, httpbin): """Ensure that a byte stream with size > 0 will not set both a Content-Length - and Transfer-Encoding header""" + and Transfer-Encoding header. + """ auth = ('user', 'pass') url = httpbin('post') file_obj = io.BytesIO(b'test data') @@ -1717,6 +1718,9 @@ class TestRequests: assert 'Content-Length' in prepared_request.headers def test_chunked_upload_does_not_set_content_length_header(self, httpbin): + """Ensure that requests with a generator body stream using + Transfer-Encoding: chunked, not a Content-Length header. + """ data = (i for i in [b'a', b'b', b'c']) url = httpbin('post') r = requests.Request('POST', url, data=data) |
