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

Method test_write_bytearray

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

Source from the content-addressed store, hash-verified

138 self.check_file(TESTFN, self.nframes, self.frames)
139
140 def test_write_bytearray(self):
141 f = self.create_file(TESTFN)
142 f.setnframes(self.nframes)
143 f.writeframes(bytearray(self.frames))
144 f.close()
145
146 self.check_file(TESTFN, self.nframes, self.frames)
147
148 def test_write_array(self):
149 f = self.create_file(TESTFN)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected