def missions_contain_id(missions_data, mission_id):
    """
    Tests whether mission_id is id of mission.

    :param missions_data: list of missions
    :param mission_id: id of mission
    :return: True if mission_id is mission
    """
    for mission in missions_data:
        if mission_id == mission['id']:
            return True
    return False