def test_create_and_delete_a_cookie(browser, app_url):
    """Should be able to create and destroy a cookie"""
    browser.visit(app_url)

    browser.cookies.delete_all()
    browser.cookies.add({"cookie": "with milk"})
    browser.cookies.delete("cookie")

    assert {} == browser.cookies
Should be able to create and destroy a cookie
tests/test_all_drivers/test_cookies.py