def test_build_cache(self):
        tournament = axelrod.Tournament(
            name=self.test_name,
            players=self.players,
            game=self.game,
            turns=200,
            repetitions=self.test_repetitions,
            processes=2)
        tournament._run_single_repetition = MagicMock(
            name='_run_single_repetition')
        tournament._build_cache([])
        tournament._run_single_repetition.assert_called_once_with([])
        self.assertEqual(
            tournament._parallel_repetitions, self.test_repetitions - 1)
dataset/ETHPy150Open Axelrod-Python/Axelrod/axelrod/tests/unit/test_tournament.py/TestTournament.test_build_cache/original