예제 #1
0
 def test_next_order_starts_from_0_if_no_sections_exists_in_a_questionnaire(self):
     Section.objects.filter(questionnaire=self.questionnaire).delete()
     self.assertEqual(0, Section.get_next_order(self.questionnaire))
예제 #2
0
 def test_next_order_starts_from_0_if_no_sections_exists_in_a_questionnaire(
         self):
     Section.objects.filter(questionnaire=self.questionnaire).delete()
     self.assertEqual(0, Section.get_next_order(self.questionnaire))
예제 #3
0
 def test_gets_next_order(self):
     self.assertEqual(2, Section.get_next_order(self.questionnaire))
예제 #4
0
 def test_gets_next_order(self):
     self.assertEqual(2, Section.get_next_order(self.questionnaire))