예제 #1
0
파일: __init__.py 프로젝트: NoyaInRain/wall
 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)
예제 #2
0
파일: __init__.py 프로젝트: NoyaInRain/wall
 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
예제 #3
0
파일: __init__.py 프로젝트: NoyaInRain/wall
 def setUp(self):
     super(WallTest, self).setUp()
     CommonCollectionTest.setUp(self)
     self.collection = self.app