def METHOD_NAME(self):
    """Test for submissions without operations to do."""
    # Submission to compile, without a result.
    submission = self.add_submission(self.tasks[0], self.participation)
    # Again to compile, but with a result.
    submission, results = self.add_submission_with_results(
        self.tasks[0], self.participation)
    # With many failure during compilation.
    submission, results = self.add_submission_with_results(
        self.tasks[0], self.participation)
    for result in results:
        result.compilation_tries = 25
    # Submission to evaluate.
    submission, results = self.add_submission_with_results(
        self.tasks[0], self.participation, True)
    # With many failures during evaluation.
    submission, results = self.add_submission_with_results(
        self.tasks[0], self.participation, True)
    for result in results:
        result.evaluation_tries = 25
    # Submission partially evaluated.
    submission, results = self.add_submission_with_results(
        self.tasks[0], self.participation, True)
    evaluated_codenames = set()
    for result in results:
        # Pick one arbitrary testcase.
        evaluated_codename = next(iter(result.dataset.testcases.keys()))
        self.add_evaluation(
            result, result.dataset.testcases[evaluated_codename])
        evaluated_codenames.add(evaluated_codename)
    self.session.flush()
    self.assertEqual(set(get_operations(self.session)), set())