diff --git a/tests/test_general.py b/tests/test_general.py index 1e42ba9..142adf0 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -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')