2018-08-11 23:02:50 +00:00
|
|
|
from unittest import TestCase
|
2018-09-10 14:24:15 +00:00
|
|
|
from BotConfig import get_config
|
|
|
|
import os
|
2018-08-12 19:00:04 +00:00
|
|
|
|
2018-08-11 23:02:50 +00:00
|
|
|
from DiscordHelperFunctions import get_nickname
|
|
|
|
|
|
|
|
|
|
|
|
class TestGet_nickname(TestCase):
|
|
|
|
def test_get_nickname(self):
|
|
|
|
class test:
|
|
|
|
def __init__(self):
|
|
|
|
self.display_name = 'dootb.in ꙩ ⃤'
|
|
|
|
self.nick = 'dootb.in ꙩ ⃤'
|
|
|
|
|
|
|
|
tmp = test()
|
2018-09-10 14:24:15 +00:00
|
|
|
|
|
|
|
self.assertEqual(get_nickname(tmp, {'dootb.in ꙩ ⃤':'aeskdar'}), 'aeskdar')
|