def METHOD_NAME(
    self,
    mocker,
    linter_obj: Linter,
    exp_container_exit_code: int,
    exp_container_log: str,
    exp_exit_code: int,
    exp_output: str,
):
    # Docker client mocking
    mocker.patch.object(
        DockerBase,
        "create_container",
        return_value=Container(
            _wait={"StatusCode": exp_container_exit_code},
            _logs=exp_container_log.encode("utf-8"),
        ),
    )
    linter_obj._linter_to_commands()
    act_exit_code, act_output = linter_obj._docker_run_linter(
        linter="pylint", test_image="test-image", keep_container=False
    )
    assert act_exit_code == exp_exit_code
    assert act_output == exp_output