Exemplo n.º 1
0
 def setUp(self):
     super(TestWhenModerating, self).setUp()
     post = create_post('mypost')
     discussion_controller = Mock(
         discussion = Mock(_id=post.discussion_id),
     )
     self.controller = ModerationController(discussion_controller)
Exemplo n.º 2
0
 def setUp(self):
     super(TestIndexWithAPostInTheDiscussion, self).setUp()
     self.post = create_post('mypost')
     discussion = self.post.discussion
     self.template_variables = show_moderation_index(discussion)
Exemplo n.º 3
0
 def setUp(self):
     super(TestPostModel, self).setUp()
     self.post = create_post('mypost')
Exemplo n.º 4
0
 def setUp(self):
     super(TestPostModel, self).setUp()
     self.post = create_post("mypost")
Exemplo n.º 5
0
 def setUp(self):
     super(TestWhenModerating, self).setUp()
     create_post('mypost')
     discussion_controller = Mock()
     self.controller = ModerationController(discussion_controller)