From 14b2a69d2119d8b9d0260aa31190fc7869b45e05 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 7 Jun 2012 11:23:23 +1200 Subject: Start building a Pathod unit testing truss. - Add test.py, which will house the testing API. - Extend API with a shutdown method, used to terminate the test daemon. - Refactor to allow clean shutdown. --- 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 bb78e094..af02239e 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -57,7 +57,15 @@ class uPages(libpry.AutoTree): assert "".join(page._write_buffer) +class u_make_server(libpry.AutoTree): + def test_simple(self): + app = pathod.PathodApp() + assert pathod.make_server(app, 0, "127.0.0.1", None) + + tests = [ uApplication(), + #uPages(), + u_make_server() ] -- cgit v1.2.3