Add simple unit test for infoscreen

This commit is contained in:
Jan Tuomi
2017-01-12 09:21:44 -05:00
parent 76cb0b2fd7
commit 51e1fe81ba
+9
View File
@@ -1,3 +1,12 @@
from django.test import TestCase
from infoscreen.models import Rotation
class RotationTestCase(TestCase):
def setUp(self):
Rotation.objects.create(name="test_rot")
def test_rotation_created(self):
rot = Rotation.objects.get(name="test_rot")
self.assertIsNotNone(rot)
# Create your tests here.