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