18 lines
472 B
Python
18 lines
472 B
Python
from unittest import TestCase
|
|
from BotConfig import get_config
|
|
import os
|
|
|
|
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()
|
|
|
|
self.assertEqual(get_nickname(tmp, {'dootb.in ꙩ ⃤':'aeskdar'}), 'aeskdar')
|