Searched refs:MyPolicy (Results 1 – 2 of 2) sorted by relevance
16 MyPolicy = TestEmailBase.policy.clone(linesep='boo') variable in TestCustomMessage21 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)
172 class MyPolicy(email.policy.EmailPolicy): class in PolicyAPITests183 self.MyPolicy(raise_on_defect=True).handle_defect(foo, defect)188 my_policy = self.MyPolicy()253 class MyPolicy(email.policy.Policy): class in TestPolicyPropagation262 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)