blob: e6f055cc2fb1c5736450be21e84bcc2a0765fee2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import urllib, urllib2, unittest
import time
import libpathod.test, requests
import tutils
class Sanity(tutils.ProxTest):
def test_http(self):
assert self.pathod("205").status_code == 205
assert self.log()
class TestHTTP(Sanity):
pass
class TestHTTPS(Sanity):
ssl = True
class TestReverse(Sanity):
reverse = True
class TestProxy(tutils.ProxTest):
def test_http(self):
f = self.pathod("205")
assert f.status_code == 205
l = self.log()
assert l[0].address
assert "host" in l[1].headers
assert l[2].code == 205
|