diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2013-02-23 21:46:01 +1300 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2013-02-23 21:46:01 +1300 |
| commit | 9c9e15341fd38508675b4f0036732a984aeedc3d (patch) | |
| tree | c1065491569fe501496729ee4c559520743e95af /test | |
| parent | 5288848d03c928cc6b6b541cdf63c3fe22133e24 (diff) | |
| download | mitmproxy-9c9e15341fd38508675b4f0036732a984aeedc3d.tar.gz mitmproxy-9c9e15341fd38508675b4f0036732a984aeedc3d.tar.bz2 mitmproxy-9c9e15341fd38508675b4f0036732a984aeedc3d.zip | |
Make last_log return None if nothing is logged.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_pathod.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index 665ef843..7f3edb63 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -96,7 +96,7 @@ class CommonTests(tutils.DaemonTests): def test_logs(self): assert self.d.clear_log() - tutils.raises("no requests logged", self.d.last_log) + assert not self.d.last_log() rsp = self.get("202:da") assert len(self.d.log()) == 1 assert self.d.clear_log() |
