Esempio n. 1
0
 def test_patch(self):
     flow = tutils.tflow(req=req_patch())
     result = """curl -H 'header:qvalue' -H 'content-length:7' -X PATCH 'http://address/path?query=param' --data-binary 'content'"""
     assert export.curl_command(flow) == result
Esempio n. 2
0
 def test_post(self):
     flow = tutils.tflow(req=req_post())
     result = """curl -X POST 'http://address/path' --data-binary 'content'"""
     assert export.curl_command(flow) == result
Esempio n. 3
0
 def test_get(self):
     flow = tutils.tflow(req=req_get())
     result = """curl -H 'header:qvalue' -H 'content-length:7' 'http://address/path?a=foo&a=bar&b=baz'"""
     assert export.curl_command(flow) == result
Esempio n. 4
0
 def test_patch(self):
     flow = tutils.tflow(req=req_patch())
     result = """curl -H 'header:qvalue' -H 'content-length:7' -X PATCH 'http://address/path?query=param' --data-binary 'content'"""
     assert export.curl_command(flow) == result
Esempio n. 5
0
 def test_post(self):
     flow = tutils.tflow(req=req_post())
     result = """curl -X POST 'http://address/path' --data-binary 'content'"""
     assert export.curl_command(flow) == result
Esempio n. 6
0
 def test_get(self):
     flow = tutils.tflow(req=req_get())
     result = """curl -H 'header:qvalue' -H 'content-length:7' 'http://address/path?a=foo&a=bar&b=baz'"""
     assert export.curl_command(flow) == result