12 lines
413 B
Python
12 lines
413 B
Python
|
|
from django.test import TestCase
|
||
|
|
|
||
|
|
from apps.lyric.models import User
|
||
|
|
from apps.epic.models import Room, GateSlot
|
||
|
|
|
||
|
|
|
||
|
|
class RoomCreationTest(TestCase):
|
||
|
|
def test_creating_a_room_generates_six_gate_slots(self):
|
||
|
|
owner = User.objects.create(email="founder@example.com")
|
||
|
|
room = Room.objects.create(name="Test Room", owner=owner)
|
||
|
|
self.assertEqual(GateSlot.objects.filter(room=room).count(), 6)
|