def METHOD_NAME(self):
    super().METHOD_NAME()
    # First set up the interesting contest, with a few copies
    # of everything.
    self.contest = self.add_contest()
    self.participation = self.add_participation(contest=self.contest)
    self.tasks = [
        self.add_task(contest=self.contest),
        self.add_task(contest=self.contest)
    ]
    self.datasets = sum([[
        self.add_dataset(task=task, autojudge=False),
        self.add_dataset(task=task, autojudge=True),
        self.add_dataset(task=task, autojudge=False),
    ] for task in self.tasks], [])
    # Similarly to esoperationstest, the active dataset is not
    # autojudged.
    for task in self.tasks:
        task.active_dataset = task.datasets[0]
    self.testcases = sum([[
        self.add_testcase(dataset),
        self.add_testcase(dataset),
        self.add_testcase(dataset),
    ] for dataset in self.datasets], [])
    self.session.flush()