Esempio n. 1
0
 def test_next_order_starts_from_0_if_no_sections_exists_in_a_questionnaire(self):
     SubSection.objects.filter(section=self.section).delete()
     self.assertEqual(0, SubSection.get_next_order(self.section.id))
Esempio n. 2
0
 def test_next_order_starts_from_0_if_no_sections_exists_in_a_questionnaire(
         self):
     SubSection.objects.filter(section=self.section).delete()
     self.assertEqual(0, SubSection.get_next_order(self.section.id))
Esempio n. 3
0
 def test_gets_next_order(self):
     self.assertEqual(2, SubSection.get_next_order(self.section.id))
Esempio n. 4
0
 def test_gets_next_order(self):
     self.assertEqual(2, SubSection.get_next_order(self.section.id))