def METHOD_NAME(mocker, an_input, expected_queue):
    # MOCK portlist
    mocker.patch(
        target="os.listdir",
        return_value=[],
    )
    controller = portfolio_controller.PortfolioController(queue=None)
    queue = controller.switch(an_input=an_input)
    assert queue == expected_queue