From 00c8bef0ff21794e622b7f442408e29c644b7002 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 9 Jun 2012 15:08:51 +1200 Subject: Port test suite over to Nose. --- test/test_pathod.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'test/test_pathod.py') diff --git a/test/test_pathod.py b/test/test_pathod.py index e4d959eb..3fd2388a 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -1,8 +1,7 @@ -import libpry from libpathod import pathod from tornado import httpserver -class uApplication(libpry.AutoTree): +class TestApplication: def test_anchors(self): a = pathod.PathodApp(staticdir=None) a.add_anchor("/foo", "200") @@ -31,13 +30,6 @@ class uApplication(libpry.AutoTree): assert not a.log_by_id(0) -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(), - u_make_server() -] +def test_make_server(): + app = pathod.PathodApp() + assert pathod.make_server(app, 0, "127.0.0.1", None) -- cgit v1.2.3