Files
web2.0-backend/infoscreen/tests.py
T
2017-01-12 09:21:44 -05:00

13 lines
328 B
Python

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.