From f2b11e5d5c56c95acb10962ebb78ec32c502b696 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 29 Apr 2012 16:22:33 +1200 Subject: Add logging, expose logs through the web app interface. --- test/test_app.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/test_app.py') diff --git a/test/test_app.py b/test/test_app.py index 721b36d7..8f9738db 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -27,6 +27,11 @@ class uApplication(libpry.AutoTree): 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 uPages(libpry.AutoTree): def dummy_page(self, path): # A hideous, hideous kludge, but Tornado seems to have no more sensible -- cgit v1.2.3