Beispiel #1
0
 def test_question_number_change(self):
     question_number(
         MockRequest(action='test_changeCategory',
                     _selected_action=self.selected,
                     offset=5,
                     change=True), Question.objects.all(), self.msg)
     self.assertIn('Successfully', self.msg.msg)
Beispiel #2
0
 def test_question_number_cancel(self):
     question_number(
         MockRequest(
             action='test_changeCategory',
             _selected_action=self.selected,
             cancel=True),
         Question.objects.all(),
         self.msg)
     self.assertIn('Canceled', self.msg.msg)
Beispiel #3
0
 def test_question_number_change(self):
     question_number(
         MockRequest(
             action='test_changeCategory',
             _selected_action=self.selected,
             offset=5,
             change=True),
         Question.objects.all(),
         self.msg)
     self.assertIn('Successfully', self.msg.msg)
Beispiel #4
0
 def test_question_number_cancel(self):
     question_number(
         MockRequest(action='test_changeCategory',
                     _selected_action=self.selected,
                     cancel=True), Question.objects.all(), self.msg)
     self.assertIn('Canceled', self.msg.msg)
Beispiel #5
0
 def test_question_number(self):
     res = question_number(MockRequest(), Question.objects.all(), self.msg)
     self.assertEquals(res.status_code, 200)
Beispiel #6
0
 def test_question_number(self):
     res = question_number(MockRequest(), Question.objects.all(), self.msg)
     self.assertEquals(res.status_code, 200)