Searched refs:MyPolicy (Results 1 – 3 of 3) 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)
185 class MyPolicy(email.policy.EmailPolicy): class in PolicyAPITests196 self.MyPolicy(raise_on_defect=True).handle_defect(foo, defect)201 my_policy = self.MyPolicy()293 class MyPolicy(email.policy.Policy): class in TestPolicyPropagation302 policy=self.MyPolicy)307 policy=self.MyPolicy)312 email.message_from_file(f, policy=self.MyPolicy)317 email.message_from_binary_file(f, policy=self.MyPolicy)322 p = email.parser.Parser(policy=self.MyPolicy)327 p = email.parser.BytesParser(policy=self.MyPolicy)
264 class MyPolicy(mp_policy.Policy): class271 MyPolicy('float32')277 custom_objects={'MyPolicy': MyPolicy})