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

Fixed escaping for long separators.

This commit is contained in:
Jake Basile
2012-04-18 18:18:00 -05:00
parent 16df8848e8
commit 90af1f7422
2 changed files with 21 additions and 4 deletions
+7
View File
@@ -76,6 +76,13 @@ class TestItemParsing(BaseTest):
})
self.assertIn('bar@baz', files)
def test_escape_longsep(self):
headers, data, files = cli.parse_items([
self.kv('bob\\:==foo'),
])
self.assertDictEqual(data, {
'bob:=': 'foo',
})
def test_valid_items(self):
headers, data, files = cli.parse_items([