TeamspeakStats/tsstats/tests/test_ident_map.py

20 lines
371 B
Python
Raw Normal View History

from tsstats.client import Clients
2015-07-31 12:50:02 -04:00
ident_map = {
'1': '2',
'5': '2',
2015-07-31 12:50:02 -04:00
'UID1': 'UID2',
'UID5': 'UID2'
}
clients = Clients(ident_map)
def test_get_id():
assert clients['1'].identifier == '2'
assert clients['5'].identifier == '2'
2015-07-31 12:50:02 -04:00
def test_get_uid():
assert clients['UID1'].identifier == 'UID2'
assert clients['UID5'].identifier == 'UID2'