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

Method test_setparams_7_tuple_uses_format

Lib/test/test_wave.py:188–196  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186 self.assertEqual(w.getformat(), wave.WAVE_FORMAT_PCM)
187
188 def test_setparams_7_tuple_uses_format(self):
189 with tempfile.NamedTemporaryFile(delete_on_close=False) as fp:
190 filename = fp.name
191 self.addCleanup(unlink, filename)
192
193 with wave.open(filename, 'wb') as w:
194 w.setparams((1, 4, 22050, 0, 'NONE', 'not compressed',
195 wave.WAVE_FORMAT_IEEE_FLOAT))
196 self.assertEqual(w.getformat(), wave.WAVE_FORMAT_IEEE_FLOAT)
197
198 def test_setparams_7_tuple_ieee_64bit_sampwidth(self):
199 with tempfile.NamedTemporaryFile(delete_on_close=False) as fp:

Callers

nothing calls this directly

Calls 5

addCleanupMethod · 0.80
setparamsMethod · 0.80
openMethod · 0.45
assertEqualMethod · 0.45
getformatMethod · 0.45

Tested by

no test coverage detected