Add space between identifier and nick

mainly used in debug mode
This commit is contained in:
Thor77 2017-05-15 22:50:05 +02:00
parent 992d35ec87
commit 11acf9f9b6
2 changed files with 5 additions and 5 deletions

View File

@ -132,4 +132,4 @@ class Client(object):
self.bans += 1
def __str__(self):
return u'<{},{}>'.format(self.identifier, self.nick)
return u'<{}, {}>'.format(self.identifier, self.nick)

View File

@ -30,10 +30,10 @@ def test_client_get(clients):
def test_client_repr(clients):
clients, _, _, _, _ = clients
assert str(clients['1']) == '<1,None>'
assert str(clients['2']) == '<2,None>'
assert str(clients['UID1']) == '<UID1,None>'
assert str(clients['UID2']) == '<UID2,None>'
assert str(clients['1']) == '<1, None>'
assert str(clients['2']) == '<2, None>'
assert str(clients['UID1']) == '<UID1, None>'
assert str(clients['UID2']) == '<UID2, None>'
def test_clients_iter(clients):