Fixed headers tests; Require requests>=1.2.3.

This commit is contained in:
Jakub Roztocil 2013-06-02 20:47:29 +02:00
parent 172df162b3
commit c3d550e930
2 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if sys.argv[-1] == 'test':
requirements = [
'requests>=1.0.4',
'requests>=1.2.3',
'Pygments>=1.5'
]
if sys.version_info[:2] in ((2, 6), (3, 1)):

View File

@ -1170,6 +1170,8 @@ class ItemParsingTest(BaseTestCase):
# files
self.key_value_type('bar\\@baz@%s' % FILE_PATH_ARG)
])
# `requests.structures.CaseInsensitiveDict` => `dict`
headers = dict(headers._store.values())
self.assertDictEqual(headers, {
'foo:bar': 'baz',
'jack@jill': 'hill',
@ -1199,6 +1201,8 @@ class ItemParsingTest(BaseTestCase):
self.key_value_type('test-file@%s' % FILE_PATH_ARG),
self.key_value_type('query==value'),
])
# `requests.structures.CaseInsensitiveDict` => `dict`
headers = dict(headers._store.values())
self.assertDictEqual(headers, {
'header': 'value',
'eh': ''