projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d806ffc
)
none headers test
author
Kenneth Reitz
<me@kennethreitz.com>
Mon, 20 Feb 2012 17:31:52 +0000
(12:31 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Mon, 20 Feb 2012 17:31:52 +0000
(12:31 -0500)
#433
tests/test_requests.py
patch
|
blob
|
history
diff --git
a/tests/test_requests.py
b/tests/test_requests.py
index
7cfb7de
..
eb3567b
100755
(executable)
--- a/
tests/test_requests.py
+++ b/
tests/test_requests.py
@@
-782,5
+782,12
@@
class RequestsTestSuite(TestSetup, unittest.TestCase):
get,
'ftp://ftp.kernel.org/pub/')
+ def test_can_have_none_in_header_values(self):
+ try:
+ # Don't choke on headers with none in the value.
+ requests.get(httpbin('headers'), headers={'Foo': None})
+ except TypeError:
+ self.fail()
+
if __name__ == '__main__':
unittest.main()