def test_cookies_extra_parameters(browser):
    """Cookie can be created with extra parameters."""
    timestamp = int(time.time() + 120)
    browser.cookies.add({"sha": "zam"}, expires=timestamp)
    cookie = browser._browser.cookies["sha"]
    assert timestamp == cookie["expires"]
Cookie can be created with extra parameters.
tests/tests_django/test_cookies_django.py