Finished pytest migration.

This commit is contained in:
Jakub Roztocil
2014-04-24 17:08:40 +02:00
parent 3cb124bba7
commit 3d079942f4
9 changed files with 53 additions and 29 deletions

View File

@ -17,9 +17,10 @@ class VerboseFlagTest(TestCase):
def test_verbose_form(self):
# https://github.com/jkbr/httpie/issues/53
r = http('--verbose', '--form', 'POST', httpbin('/post'),
'foo=bar', 'baz=bar')
'A=B', 'C=D')
assert HTTP_OK in r
assert 'foo=bar&baz=bar' 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
def test_verbose_json(self):
r = http('--verbose', 'POST', httpbin('/post'), 'foo=bar', 'baz=bar')