Skip to content
Myr

Test for #303

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 961f78a · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:test_requests.py+8 added
580 unmodified lines
581 config = {'safe_mode': True}582 r = requests.get(hah, allow_redirects=False, config=config)583 assert r.content == None584585 def test_cached_response(self):586587 r1 = requests.get(httpbin('get'), prefetch=False)588 assert r1.content589 assert r1.content590591 r2 = requests.get(httpbin('get'), prefetch=True)592 assert r2.content593594if __name__ == '__main__':595 unittest.main()