def test_post(self): CommonCollectionTest.test_post(self) post = self.app.post_new('TestPost') self.assertEqual(self.app.current_post, post) self.assertTrue(post.activate_called) self.app.post(post) self.assertTrue(post.deactivate_called)
def setUp(self): super(GridPostTest, self).setUp() CommonPostTest.setUp(self) CommonCollectionTest.setUp(self) self.post_type = GridPost self.create_args = {} self.post = self.app.post_new('GridPost') self.collection = self.post
def setUp(self): super(WallTest, self).setUp() CommonCollectionTest.setUp(self) self.collection = self.app