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

Method test_write_params

Lib/test/audiotests.py:77–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self.assertEqual(f.getformat(), self.format)
76
77 def test_write_params(self):
78 f = self.create_file(TESTFN)
79 f.setnframes(self.nframes)
80 f.writeframes(self.frames)
81 self.check_params(f, self.nchannels, self.sampwidth, self.framerate,
82 self.nframes, self.comptype, self.compname, self.format)
83 f.close()
84
85 def test_write_context_manager_calls_close(self):
86 # Close checks for a minimum header and will raise an error

Callers

nothing calls this directly

Calls 5

create_fileMethod · 0.95
setnframesMethod · 0.80
writeframesMethod · 0.80
check_paramsMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected