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

Method _check_from

Lib/test/test_mailbox.py:1745–1751  ·  view source on GitHub ↗
(self, msg, sender=None)

Source from the content-addressed store, hash-verified

1743 self._check_sample(msg)
1744
1745 def _check_from(self, msg, sender=None):
1746 # Check contents of "From " line
1747 if sender is None:
1748 sender = "MAILER-DAEMON"
1749 self.assertIsNotNone(re.match(
1750 sender + r" \w{3} \w{3} [\d ]\d [\d ]\d:\d{2}:\d{2} \d{4}",
1751 msg.get_from()))
1752
1753
1754class TestMboxMessage(_TestMboxMMDFMessage, TestMessage):

Callers 2

_post_initialize_hookMethod · 0.95
test_fromMethod · 0.95

Calls 3

assertIsNotNoneMethod · 0.80
get_fromMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected