Skip to content

Commit

Permalink
Update test for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Jan 20, 2024
1 parent ded0338 commit cd820e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cookiejar.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,11 @@ def test_domain_filter_diff_host(self) -> None:

def test_domain_filter_host_only(self) -> None:
self.jar.update_cookies(self.cookies_to_receive, URL("http://example.com/"))
sub_cookie = SimpleCookie("subdomain=spam; Path=/;")
self.jar.update_cookies(sub_cookie, URL("http://foo.example.com/"))

cookies_sent = self.jar.filter_cookies(URL("http://example.com/"))
self.assertIn("unconstrained-cookie", set(cookies_sent.keys()))

cookies_sent = self.jar.filter_cookies(URL("http://different.org/"))
cookies_sent = self.jar.filter_cookies(URL("http://foo.example.com/"))
self.assertIn("subdomain", set(cookies_sent.keys()))
self.assertNotIn("unconstrained-cookie", set(cookies_sent.keys()))

def test_secure_filter(self) -> None:
Expand Down

0 comments on commit cd820e8

Please sign in to comment.