2018-12-17 16:13:37 +00:00
|
|
|
from django.test import TestCase
|
2019-05-11 15:13:03 +00:00
|
|
|
from GeoffreyApp.minecraft_api import grab_playername, grab_UUID
|
2018-12-17 16:13:37 +00:00
|
|
|
# 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)
|