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

Method test_read_params

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

Source from the content-addressed store, hash-verified

254 cls.sndfilepath = findfile(cls.sndfilename, subdir='audiodata')
255
256 def test_read_params(self):
257 f = self.f = self.module.open(self.sndfilepath)
258 #self.assertEqual(f.getfp().name, self.sndfilepath)
259 self.check_params(f, self.nchannels, self.sampwidth, self.framerate,
260 self.sndfilenframes, self.comptype, self.compname)
261
262 def test_close(self):
263 with open(self.sndfilepath, 'rb') as testfile:

Callers

nothing calls this directly

Calls 2

check_paramsMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected