test client-repr

This commit is contained in:
Thor77 2015-07-31 22:13:32 +02:00
parent f95aaf5737
commit 63d3f69c3c
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
from tsstats import parse_logs
from os import remove
from nose.tools import raises
clients = parse_logs('tests/res/test.log')
@ -36,6 +37,10 @@ def test_parse_pbans():
assert clients['2'].pbans == 1
def test_client_repr():
assert str(clients['1']) == '<1,Client1>'
def test_debug_log():
clients = parse_logs('tests/res/test.log', file_log=True)
open('debug.txt')