MCPcopy Index your code
hub / github.com/python/cpython / test_initialize_with_nothing

Method test_initialize_with_nothing

Lib/test/test_mailbox.py:1597–1606  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1595 self._check_sample(msg)
1596
1597 def test_initialize_with_nothing(self):
1598 # Initialize without arguments
1599 msg = self._factory()
1600 self._post_initialize_hook(msg)
1601 self.assertIsInstance(msg, email.message.Message)
1602 self.assertIsInstance(msg, mailbox.Message)
1603 self.assertIsInstance(msg, self._factory)
1604 self.assertEqual(msg.keys(), [])
1605 self.assertFalse(msg.is_multipart())
1606 self.assertIsNone(msg.get_payload())
1607
1608 def test_initialize_incorrectly(self):
1609 # Initialize with invalid argument

Callers

nothing calls this directly

Calls 9

_post_initialize_hookMethod · 0.95
_factoryMethod · 0.80
assertIsInstanceMethod · 0.80
assertFalseMethod · 0.80
is_multipartMethod · 0.80
assertIsNoneMethod · 0.80
get_payloadMethod · 0.80
assertEqualMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected