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

Method test_encoding

Lib/test/test_email/test_email.py:1687–1691  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1685 self.assertEqual(self._im.get_content_type(), f'image/{subtype}')
1686
1687 def test_encoding(self):
1688 self._make_image('gif')
1689 payload = self._im.get_payload()
1690 self.assertEqual(base64.decodebytes(bytes(payload, 'ascii')),
1691 self._imgdata)
1692
1693 def test_checkSetMinor(self):
1694 self._make_image('gif')

Callers

nothing calls this directly

Calls 3

_make_imageMethod · 0.95
get_payloadMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected