aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index d19518e5..60a4fc04 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -835,6 +835,13 @@ class uResponse(libpry.AutoTree):
c = "MOO=BAR; Expires=Tue, 08-Mar-2011 00:20:38 GMT; Path=foo.com; Secure"
assert "00:21:38" in r._refresh_cookie(c, 60)
+ def test_get_cert(self):
+ req = tutils.treq()
+ resp = flow.Response(req, 200, "msg", flow.ODictCaseless(), "content", file("data/dercert").read())
+ assert resp.get_cert()
+
+ resp = tutils.tresp()
+ assert not resp.get_cert()
def test_getset_state(self):
h = flow.ODictCaseless()