def test_executor():
    assert executor.door_open_execute(
        lane.DoorOpen("door_open_name", duration)
    ) == "door_open_name"

    assert executor.door_close_execute(
        lane.DoorClose("door_close_name", duration)
    ) == "door_close_name"

    assert executor.lift_session_begin_execute(
        lane.LiftSessionBegin(
            "lift_session_begin_name", "floor_name", duration)
    ) == "lift_session_begin_name"

    assert executor.lift_door_open_execute(
        lane.LiftDoorOpen("lift_session_end_name", "floor_name", duration)
    ) == "lift_session_end_name"

    assert executor.lift_session_end_execute(
        lane.LiftSessionEnd("lift_session_end_name", "floor_name", duration)
    ) == "lift_session_end_name"

    assert executor.lift_move_execute(
        lane.LiftSessionEnd("lift_move_name", "floor_name", duration)
    ) == "lift_move_name"

    assert executor.dock_execute(
        lane.Dock("dock_name", duration)
    ) == "dock_name"

    assert executor.wait_execute(
        lane.Wait(duration)
    ) == duration
def test_dock():
    lane.Dock("dock_name", duration)

    assert dock.dock_name == "dock_name"
    assert dock.duration == duration

    dock.dock_name = "dock!"
    dock.duration = new_duration
    assert dock.dock_name == "dock!"
    assert dock.duration == new_duration
def test_executor():
    assert executor.door_open_execute(lane.DoorOpen(
        "door_open_name", duration)) == "door_open_name"

    assert executor.door_close_execute(
        lane.DoorOpen("door_close_name", duration)) == "door_close_name"

    assert executor.lift_door_open_execute(
        lane.LiftDoorOpen("lift_door_open_name", "floor_name",
                          duration)) == "lift_door_open_name"

    assert executor.lift_door_close_execute(
        lane.LiftDoorClose("lift_door_close_name", "floor_name",
                           duration)) == "lift_door_close_name"

    assert executor.lift_move_execute(
        lane.LiftDoorClose("lift_name", "destination_floor",
                           duration)) == "lift_name"

    assert executor.dock_execute(lane.Dock("dock_name",
                                           duration)) == "dock_name"
                              duration=duration)

    assert lift_move.lift_name == "lift_name"
    assert lift_move.floor_name == "floor_name"
    assert lift_move.duration == duration

    lift_move.lift_name = "lift!"
    lift_move.floor_name = "lift!"
    lift_move.duration = new_duration
    assert lift_move.lift_name == "lift!"
    assert lift_move.floor_name == "lift!"
    assert lift_move.duration == new_duration


# DOCK ========================================================================
dock = lane.Dock(duration=duration, dock_name="dock_name")


def test_dock():
    lane.Dock("dock_name", duration)

    assert dock.dock_name == "dock_name"
    assert dock.duration == duration

    dock.dock_name = "dock!"
    dock.duration = new_duration
    assert dock.dock_name == "dock!"
    assert dock.duration == new_duration


# EXECUTOR ====================================================================