def test_copy_user_agent_from_driver(session: requestium.Session) -> None:
    """Ensure that requests user-agent header has been changed after calling session.copy_user_agent_from_driver()."""
    pre_copy_requests_useragent = session.headers["user-agent"]
    assert pre_copy_requests_useragent
    assert pre_copy_requests_useragent != ""

    session.driver.get("http://the-internet.herokuapp.com")
    session.copy_user_agent_from_driver()
    post_copy_requests_useragent = session.headers["user-agent"]

    assert post_copy_requests_useragent != pre_copy_requests_useragent
Ensure that requests user-agent header has been changed after calling session.copy_user_agent_from_driver().
tests/test_user_agent.py