Skip to content
Myr

Verify that cookie can be properly accessed if domain is specified, and that error is raised otherwise. Refs #3028.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Casey Davidson · committed by Casey Davidson · parent c53a685 · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • tests:+8 added−0 removed

1 file+8 added−0 removed

modified:tests/test_requests.py+8 added
765 unmodified lines
766 assert key in jar767 items = jar.items()768 assert len(items) == 2769770 # Verify that CookieConflictError is raised if domain is not specified771 with pytest.raises(requests.cookies.CookieConflictError):772 jar.get(key)773774 # Verify that CookieConflictError is not raised if domain is specified775 cookie = jar.get(key, domain=domain1)776 assert cookie == value777778 def test_cookie_duplicate_names_raises_cookie_conflict_error(self):779 key = 'some_cookie'780 value = 'some_value'781 path = 'some_path'
705 unmodified lines