aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/tutils.py')
-rw-r--r--test/tutils.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/tutils.py b/test/tutils.py
index ad2960d9..75fb7c0b 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -39,6 +39,14 @@ def tserver_conn():
return c
+def treq_absolute(conn=None, content="content"):
+ r = treq(conn, content)
+ r.form_in = r.form_out = "absolute"
+ r.host = "address"
+ r.port = 22
+ r.scheme = "http"
+ return r
+
def treq(conn=None, content="content"):
if not conn:
conn = tclient_conn()
@@ -78,6 +86,10 @@ def terr(req=None):
f.error.reply = controller.DummyReply()
return f.error
+def tflow_noreq():
+ f = tflow()
+ f.request = None
+ return f
def tflow(req=None):
if not req: