1
0
mirror of https://github.com/httpie/cli.git synced 2026-04-26 20:02:11 +02:00

Better error messages.

This commit is contained in:
Jakub Roztocil
2012-07-29 07:14:54 +02:00
parent edf87c3392
commit 6eed0d92eb
2 changed files with 8 additions and 23 deletions
+2 -3
View File
@@ -619,12 +619,11 @@ class RequestBodyFromFilePathTest(BaseTestCase):
self.assertIn(TEST_FILE_CONTENT, r)
self.assertIn('"Content-Type": "x-foo/bar"', r)
def test_request_body_from_file_by_path_only_one_file_allowed(self):
def test_request_body_from_file_by_path_no_field_name_allowed(self):
self.assertRaises(SystemExit, lambda: http(
'POST',
httpbin('/post'),
'@' + TEST_FILE_PATH,
'@' + TEST_FILE2_PATH)
'field-name@' + TEST_FILE_PATH)
)
def test_request_body_from_file_by_path_no_data_items_allowed(self):