mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Added Python 2.6 compatible OrderedDict
To preserver ordr of headers, parameters, etc.
This commit is contained in:
1 parent
e5d758e4ce
commit
f02169ea71
4 files changed
+139
-8
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user