From 9c9e15341fd38508675b4f0036732a984aeedc3d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 23 Feb 2013 21:46:01 +1300 Subject: Make last_log return None if nothing is logged. --- test/test_pathod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_pathod.py') 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() -- cgit v1.2.3