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

Method test_read_params

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

Source from the content-addressed store, hash-verified

260 cls.sndfilepath = findfile(cls.sndfilename, subdir='audiodata')
261
262 def test_read_params(self):
263 f = self.f = self.module.open(self.sndfilepath)
264 #self.assertEqual(f.getfp().name, self.sndfilepath)
265 self.check_params(f, self.nchannels, self.sampwidth, self.framerate,
266 self.sndfilenframes, self.comptype, self.compname, self.format)
267
268 def test_close(self):
269 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