From 63d3f69c3c5695f55ef915d2474df0cd89588849 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Fri, 31 Jul 2015 22:13:32 +0200 Subject: [PATCH] test client-repr --- tests/test_general.py | 5 +++++ 1 file changed, 5 insertions(+) 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')