Пример #1
0
    def test_forum_creation(self):
        forum = ForumFactory.create()

        self.assertEquals(Forum.objects.count(), 1)
        self.assertEquals(forum.name, 'Forum')
        self.assertEquals(forum.position, 0)
        self.assertEquals(forum.description, '')
        self.assertEquals(forum.is_closed, False)
Пример #2
0
 def setUp(self):
     self.forum = ForumFactory.create()
Пример #3
0
 def setUp(self):
     self.forum = ForumFactory()