Lines Matching refs:cj
648 cj = CookieJar()
651 interact_netscape(cj, uri, value)
653 self.assertIn("/", cj._cookies["example.com"])
655 self.assertEqual(interact_netscape(cj, uri), value)
816 cj = CookieJar(policy=cp)
817 interact_netscape(cj, "http://example.co.uk/", 'no=problemo')
818 interact_netscape(cj, "http://example.co.uk/",
820 self.assertEqual(len(cj), 2)
822 interact_netscape(cj, "http://example.%s/" % pseudo_tld,
824 self.assertEqual(len(cj), 2)
1672 def save_and_restore(cj, ignore_discard): argument
1674 cj.save(ignore_discard=ignore_discard)