Home
last modified time | relevance | path

Searched refs:MyPolicy (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/test_email/
Dtest_parser.py16 MyPolicy = TestEmailBase.policy.clone(linesep='boo') variable in TestCustomMessage
21 policy=self.MyPolicy)
23 self.assertIs(msg.check_policy, self.MyPolicy)
29 policy=self.MyPolicy)
31 self.assertIs(msg.check_policy, self.MyPolicy)
76 MyPolicy = default.clone(message_factory=self.MyMessage)
77 msg = parser("To: foo\n\ntest", policy=MyPolicy)
83 MyPolicy = default.clone(message_factory=self.MyMessage)
84 msg = parser("To: foo\n\ntest", Message, policy=MyPolicy)
Dtest_policy.py172 class MyPolicy(email.policy.EmailPolicy): class in PolicyAPITests
183 self.MyPolicy(raise_on_defect=True).handle_defect(foo, defect)
188 my_policy = self.MyPolicy()
253 class MyPolicy(email.policy.Policy): class in TestPolicyPropagation
262 policy=self.MyPolicy)
267 policy=self.MyPolicy)
272 email.message_from_file(f, policy=self.MyPolicy)
277 email.message_from_binary_file(f, policy=self.MyPolicy)
282 p = email.parser.Parser(policy=self.MyPolicy)
287 p = email.parser.BytesParser(policy=self.MyPolicy)