From f0fd33fb11513a3e74079eaed5f5c1b8bb4e561d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 21 Jun 2012 15:39:40 +1200 Subject: Log inspection and manipulation from tests. --- test/test_pathod.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'test/test_pathod.py') diff --git a/test/test_pathod.py b/test/test_pathod.py index 9c16748d..966ae12e 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -12,22 +12,6 @@ class _TestApplication: a.remove_anchor("/oink", "400") assert a.get_anchors() == [("/foo", "200")] - def test_logs(self): - a = pathod.PathodApp(staticdir=None) - a.LOGBUF = 3 - a.add_log({}) - assert a.log[0]["id"] == 0 - a.add_log({}) - a.add_log({}) - assert a.log[0]["id"] == 2 - a.add_log({}) - assert len(a.log) == 3 - assert a.log[0]["id"] == 3 - assert a.log[-1]["id"] == 1 - - assert a.log_by_id(1)["id"] == 1 - assert not a.log_by_id(0) - class TestPathod: def test_instantiation(self): -- cgit v1.2.3