MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_write_params

Method test_write_params

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

Source from the content-addressed store, hash-verified

69 self.assertEqual(f.readframes(nframes), frames)
70
71 def test_write_params(self):
72 f = self.create_file(TESTFN)
73 f.setnframes(self.nframes)
74 f.writeframes(self.frames)
75 self.check_params(f, self.nchannels, self.sampwidth, self.framerate,
76 self.nframes, self.comptype, self.compname)
77 f.close()
78
79 def test_write_context_manager_calls_close(self):
80 # 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