2016-02-02 12:25:31 +00:00
|
|
|
from . import tutils, tservers
|
2015-05-30 00:03:28 +00:00
|
|
|
|
2014-02-07 01:36:39 +00:00
|
|
|
|
2014-02-07 23:33:59 +00:00
|
|
|
class TestApp(tservers.HTTPProxTest):
|
2016-01-27 09:12:18 +00:00
|
|
|
|
2014-02-07 01:36:39 +00:00
|
|
|
def test_basic(self):
|
2014-02-07 23:33:59 +00:00
|
|
|
assert self.app("/").status_code == 200
|
2014-02-07 01:36:39 +00:00
|
|
|
|
|
|
|
def test_cert(self):
|
|
|
|
with tutils.tmpdir() as d:
|
|
|
|
for ext in ["pem", "p12"]:
|
2014-02-07 23:33:59 +00:00
|
|
|
resp = self.app("/cert/%s" % ext)
|
2014-02-07 01:36:39 +00:00
|
|
|
assert resp.status_code == 200
|
2014-03-05 04:25:12 +00:00
|
|
|
assert resp.content
|