1
0
Fork 0
mirror of https://github.com/Thor77/TeamspeakStats.git synced 2025-07-12 01:58:44 -04:00
TeamspeakStats/tests/test_ident_map.py
2015-09-04 23:06:41 +02:00

19 lines
364 B
Python

from tsstats import Clients
ident_map = {
'1': '2',
'5': '2',
'UID1': 'UID2',
'UID5': 'UID2'
}
clients = Clients(ident_map)
def test_get_id():
assert clients['1'].identifier == '2'
assert clients['5'].identifier == '2'
def test_get_uid():
assert clients['UID1'].identifier == 'UID2'
assert clients['UID5'].identifier == 'UID2'