From 0b98c48cbe28a01e325d4877ab76395db6548461 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 26 Mar 2015 16:47:20 +0100 Subject: gbplogtester: add helper to test for empty log --- tests/testutils/gbplogtester.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/testutils') diff --git a/tests/testutils/gbplogtester.py b/tests/testutils/gbplogtester.py index 2f2f43e0..9a54f025 100644 --- a/tests/testutils/gbplogtester.py +++ b/tests/testutils/gbplogtester.py @@ -37,6 +37,11 @@ class GbpLogTester(object): self._log.seek(0) return self._log.readlines() + def _check_log_empty(self): + """Check that nothig was logged""" + output = self._get_log() + ok_(output == [], "Log is not empty: %s" % output) + def _check_log(self, linenum, regex): """Check that the specified line on log matches expectations""" if self._log is None: -- cgit v1.2.3