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)
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)
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')
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')