aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-04-29 16:22:33 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-04-29 16:22:53 +1200
commitf2b11e5d5c56c95acb10962ebb78ec32c502b696 (patch)
tree47514f0e724e536f2f792a6be6eadcc5caea290d /test/test_app.py
parentfd946f0c04c2471ab9e579087af3f4cb645be41a (diff)
downloadmitmproxy-f2b11e5d5c56c95acb10962ebb78ec32c502b696.tar.gz
mitmproxy-f2b11e5d5c56c95acb10962ebb78ec32c502b696.tar.bz2
mitmproxy-f2b11e5d5c56c95acb10962ebb78ec32c502b696.zip
Add logging, expose logs through the web app interface.
Diffstat (limited to 'test/test_app.py')
-rw-r--r--test/test_app.py5
1 files changed, 5 insertions, 0 deletions
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