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

Method test_write_bytearray

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

Source from the content-addressed store, hash-verified

132 self.check_file(TESTFN, self.nframes, self.frames)
133
134 def test_write_bytearray(self):
135 f = self.create_file(TESTFN)
136 f.setnframes(self.nframes)
137 f.writeframes(bytearray(self.frames))
138 f.close()
139
140 self.check_file(TESTFN, self.nframes, self.frames)
141
142 def test_write_array(self):
143 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