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

Method test_write

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

Source from the content-addressed store, hash-verified

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