From f1b9d2cf659ea9c7f7c070afc288c3ee6bc53678 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Fri, 31 Jul 2015 21:55:26 +0200 Subject: [PATCH] add debuglog-test --- tests/test_general.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_general.py b/tests/test_general.py index db32b95..1e42ba9 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -1,5 +1,5 @@ from tsstats import parse_logs -from sys import stderr +from os import remove clients = parse_logs('tests/res/test.log') @@ -34,3 +34,9 @@ def test_parse_bans(): def test_parse_pbans(): assert clients['2'].pbans == 1 + + +def test_debug_log(): + clients = parse_logs('tests/res/test.log', file_log=True) + open('debug.txt') + remove('debug.txt')