def test_is_consecutive__all_empty__true(self): test_group = FileGrouper.group_files_by_keys([], ["test"]) self.assertTrue(FileGrouper.is_consecutive(test_group))
def test_is_consecutive__correct_order__true(self): test_group = FileGrouper.group_files_by_keys( ["test_00.jpg", "test_01.jpg"], ["test"]) self.assertTrue(FileGrouper.is_consecutive(test_group))
def test_group_files_by_keys__file_order_with_one_leading_zeros__ordered_by_file_index( self, ): file_list = get_ordered_file_list_with_one_leading_zero() result = FileGrouper.group_files_by_keys(file_list, ["a"]) self.assertTrue(FileGrouper.is_consecutive(result))