Added Python 2.6 compatible OrderedDict

To preserver ordr of headers, parameters, etc.
This commit is contained in:
Jakub Roztocil committed 2014-04-24 19:57:19 +02:00
1 parent e5d758e4ce
commit f02169ea71
4 files changed
+139 -8

No files matched your search

+1 -2
View File
@@ -15,8 +15,7 @@ class VerboseFlagTest(TestCase):
r = http('--verbose', '--form', 'POST', httpbin('/post'),
'A=B', 'C=D')
assert HTTP_OK in r
# Python 2.6 has no ordered dict, so we test for both orders here.
assert 'A=B&C=D' in r or 'C=D&A=B', r
assert 'A=B&C=D' in r
def test_verbose_json(self):
r = http('--verbose', 'POST', httpbin('/post'), 'foo=bar', 'baz=bar')