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)
def setUp(self): self.topic = TopicFactory()
def setUp(self): self.topic = TopicFactory.create()