def METHOD_NAME(
    self,
    export_kwargs: Dict[str, Any],
    mocker: MockerFixture,
    tmp_path: Path,
) -> None:
    """Test export."""
    expected = tmp_path / "expected" / "test.requirements.txt"
    mock_generate_command = mocker.patch.object(
        Poetry, "generate_command", return_value="generate_command"
    )
    mock_run_command = mocker.patch.object(
        Poetry, "_run_command", return_value="_run_command"
    )
    (tmp_path / "test.requirements.txt").touch()  # created by _run_command
    obj = Poetry(Mock(), tmp_path)
    assert obj.export(output=expected, **export_kwargs) == expected
    assert expected.is_file()
    export_kwargs.update({"output": expected.name})
    export_kwargs.update(
        {"format": export_kwargs.pop("output_format", "requirements.txt")}
    )
    export_kwargs.setdefault("dev", False)
    export_kwargs.setdefault("extras", None)
    export_kwargs.setdefault("with_credentials", True)
    export_kwargs.setdefault("without_hashes", True)
    mock_generate_command.assert_called_once_with("export", **export_kwargs)
    mock_run_command.assert_called_once_with(mock_generate_command.return_value)