16 lines
373 B
Python
16 lines
373 B
Python
from django.test import TestCase
|
|
from GeoffreyApp.MCM_api import get_player
|
|
# Create your tests here.
|
|
|
|
|
|
class MCM_api_test(TestCase):
|
|
|
|
def test_get_player(self):
|
|
uuid = "fe7e84132570458892032b69ff188bc3"
|
|
players = get_player(uuid)
|
|
|
|
if len(players) != 1:
|
|
self.fail()
|
|
else:
|
|
self.assertEqual(players[0]["id"], 4146)
|