from django.test import TestCase

from tickets.tests.factories import UserFactory, TicketFactory


class TicketTestCase(TestCase):
    def test_model(self):
        obj = TicketFactory()
        self.assertTrue(obj.pk)

    def test_is_closed(self):
        obj = TicketFactory()
        self.assertFalse(obj.is_closed())
        obj.status = 4
        self.assertTrue(obj.is_closed())


@@ -89,16 +89,38 @@
 tFactory
+, TicketCommentFactory
 %0A%0A%0Aclass
@@ -402,8 +402,143 @@
 sed())%0A%0A
+class TicketCommentTestCase(TestCase):%0A    def test_model(self):%0A        obj = TicketCommentFactory()%0A        self.assertTrue(obj.pk)%0A%0A

add model test for TicketComment