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

Method _make_audio

Lib/test/test_email/test_email.py:1610–1613  ·  view source on GitHub ↗
(self, ext)

Source from the content-addressed store, hash-verified

1608# Test the basic MIMEAudio class
1609class TestMIMEAudio(unittest.TestCase):
1610 def _make_audio(self, ext):
1611 with openfile(f'sndhdr.{ext}', 'rb') as fp:
1612 self._audiodata = fp.read()
1613 self._au = MIMEAudio(self._audiodata)
1614
1615 def test_guess_minor_type(self):
1616 for ext, subtype in {

Callers 4

test_guess_minor_typeMethod · 0.95
test_encodingMethod · 0.95
test_checkSetMinorMethod · 0.95
test_add_headerMethod · 0.95

Calls 3

openfileFunction · 0.90
MIMEAudioClass · 0.90
readMethod · 0.45

Tested by

no test coverage detected