From ed7ef84557452bf43190b94a7b5c3393bb796178 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 5 Jan 2013 20:36:06 +1300 Subject: Implement and unit test not-after-connect option. --- test/test_pathod.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/test_pathod.py') diff --git a/test/test_pathod.py b/test/test_pathod.py index 0463fc55..665ef843 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -52,6 +52,14 @@ class TestNoApi(tutils.DaemonTests): assert not "Log" in r.content +class TestNotAfterConnect(tutils.DaemonTests): + ssl = False + not_after_connect = True + def test_connect(self): + v = self.pathoc(r"get:'http://foo.com/p/202':da", connect_to=("localhost", self.d.port)) + assert v[1] == 202 + + class TestNohang(tutils.DaemonTests): nohang = True def test_nohang(self): -- cgit v1.2.3