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

Method test_initialize_with_nothing

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

Source from the content-addressed store, hash-verified

1580 self._check_sample(msg)
1581
1582 def test_initialize_with_nothing(self):
1583 # Initialize without arguments
1584 msg = self._factory()
1585 self._post_initialize_hook(msg)
1586 self.assertIsInstance(msg, email.message.Message)
1587 self.assertIsInstance(msg, mailbox.Message)
1588 self.assertIsInstance(msg, self._factory)
1589 self.assertEqual(msg.keys(), [])
1590 self.assertFalse(msg.is_multipart())
1591 self.assertIsNone(msg.get_payload())
1592
1593 def test_initialize_incorrectly(self):
1594 # 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