MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_parser

Method test_parser

Lib/test/test_email/test_policy.py:364–367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

362 # These are redundant, but we need them for black-box completeness.
363
364 def test_parser(self):
365 p = email.parser.Parser(policy=self.MyPolicy)
366 with self.assertRaisesRegex(TestException, "^test$"):
367 p.parsestr('Subject: test\n\n')
368
369 def test_bytes_parser(self):
370 p = email.parser.BytesParser(policy=self.MyPolicy)

Callers

nothing calls this directly

Calls 2

parsestrMethod · 0.95
assertRaisesRegexMethod · 0.80

Tested by

no test coverage detected