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

Method test_checkSetMinor

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

Source from the content-addressed store, hash-verified

1691 self._imgdata)
1692
1693 def test_checkSetMinor(self):
1694 self._make_image('gif')
1695 im = MIMEImage(self._imgdata, 'fish')
1696 self.assertEqual(im.get_content_type(), 'image/fish')
1697
1698 def test_add_header(self):
1699 self._make_image('gif')

Callers

nothing calls this directly

Calls 4

_make_imageMethod · 0.95
MIMEImageClass · 0.90
get_content_typeMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected