示例#1
0
 def test_tcp(self, tcp_flow):
     with pytest.raises(exceptions.CommandError):
         export.raw_response(tcp_flow)
示例#2
0
 def test_get(self, get_response):
     assert b"header-response: svalue" in export.raw_response(get_response)
示例#3
0
 def test_no_response(self, get_request):
     with pytest.raises(exceptions.CommandError):
         export.raw_response(get_request)
示例#4
0
 def test_no_content(self, get_response):
     get_response.response.content = None
     with pytest.raises(exceptions.CommandError):
         export.raw_response(get_response)