def METHOD_NAME(self, main_function, config_mock, init_db_mock, buildsys, bugs):
    clean_old_composes_task(42)
    config_mock.load_config.assert_called_with()
    init_db_mock.assert_called_with(config_mock)
    buildsys.setup_buildsystem.assert_called_with(config_mock)
    bugs.set_bugtracker.assert_called_with()
    main_function.assert_called_with(42)