Fixed --verbose --form.

Closes #53
This commit is contained in:
Jakub Roztocil committed 2012-06-15 16:47:55 +02:00
1 parent 284a75fa2f
commit cbc6d02127
2 files changed
+9

No files matched your search

+5
View File
@@ -122,6 +122,11 @@ class TestHTTPie(BaseTest):
r = http('--verbose', 'GET', 'http://httpbin.org/get', 'test-header:__test__')
self.assertEqual(r.count('__test__'), 2)
def test_verbose_form(self):
# https://github.com/jkbr/httpie/issues/53
r = http('--verbose', '--form', 'POST', 'http://httpbin.org/post', 'foo=bar', 'baz=bar')
self.assertIn('foo=bar&baz=bar', r)
def test_json(self):
response = http('POST', 'http://httpbin.org/post', 'foo=bar')
self.assertIn('"foo": "bar"', response)