18 lines
399 B
Python
18 lines
399 B
Python
|
from django.test import TestCase
|
||
|
from GeoffreyApp.mcm_api import get_player
|
||
|
# Create your tests here.
|
||
|
|
||
|
UUID = "fe7e84132570458892032b69ff188bc3"
|
||
|
USERNAME = "ZeroHD"
|
||
|
|
||
|
|
||
|
class MCM_APITestCase(TestCase):
|
||
|
|
||
|
def test_get_player(self):
|
||
|
players = get_player(UUID)
|
||
|
|
||
|
if len(players) != 1:
|
||
|
self.fail()
|
||
|
else:
|
||
|
self.assertEqual(players[0]["username"], USERNAME)
|