示例#1
0
    def test_topic_creation(self):
        topic = TopicFactory.create()

        self.assertEquals(Topic.objects.count(), 1)
        self.assertEquals(topic.name, 'Topic')
        self.assertEquals(topic.last_post, None)
示例#2
0
 def setUp(self):
     self.topic = TopicFactory()
示例#3
0
 def setUp(self):
     self.topic = TopicFactory.create()