Bug 1407695 - Clear all cookies from session before running test; r=ato

MozReview-Commit-ID: A7plYkYzvek

--HG--
extra : rebase_source : 599d1ac82b5671a3f27fd98c740cfc7adc0859f1
This commit is contained in:
Øyvind Strømmen 2017-10-24 08:05:54 +02:00
Родитель d6d4b4b5e4
Коммит 00104c8f08
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -3,6 +3,7 @@ from tests.support.fixtures import clear_all_cookies
def test_get_named_cookie(session, url): def test_get_named_cookie(session, url):
session.url = url("/common/blank.html") session.url = url("/common/blank.html")
clear_all_cookies(session)
session.execute_script("document.cookie = 'foo=bar'") session.execute_script("document.cookie = 'foo=bar'")
result = session.transport.send("GET", "session/%s/cookie/foo" % session.session_id) result = session.transport.send("GET", "session/%s/cookie/foo" % session.session_id)