Geoffrey-Django/GeoffreyApp/test/test_minecraft_api.py

18 lines
485 B
Python

from django.test import TestCase
from GeoffreyApp.GeoffreyApp.minecraft_api import grab_playername, grab_UUID
# Create your tests here.
UUID = "fe7e84132570458892032b69ff188bc3"
USERNAME = "ZeroHD"
class MinecraftAPITestCase(TestCase):
def test_grab_playername(self):
player_name = grab_playername(UUID)
self.assertEqual(player_name, USERNAME)
def test_grab_uuid(self):
player_uuid = grab_UUID(USERNAME)
self.assertEqual(player_uuid, UUID)