예제 #1
0
 def test_get_next_section_none(self):
     section_list = ['1002.1', '1002.2']
     current_index = 1
     self.assertIs(get_next_section(section_list, current_index), None)
예제 #2
0
 def test_get_next_section_none(self):
     section_list = ['1002.1', '1002.2']
     current_index = 1
     self.assertIs(
         get_next_section(section_list, current_index), None)
예제 #3
0
 def test_get_next_section(self):
     section_list = ['1002.1', '1002.2']
     current_index = 0
     self.assertEqual(get_next_section(section_list, current_index),
                      '1002.2')
예제 #4
0
 def test_get_next_section(self):
     section_list = ['1002.1', '1002.2']
     current_index = 0
     self.assertEqual(
         get_next_section(section_list, current_index), '1002.2')