Lines Matching refs:self
108 def test__all__(self):
109 support.check__all__(self, wave, not_exported={'WAVE_FORMAT_PCM'})
114 def test_read_no_chunks(self):
116 with self.assertRaises(EOFError):
119 def test_read_no_riff_chunk(self):
121 with self.assertRaisesRegex(wave.Error,
125 def test_read_not_wave(self):
127 with self.assertRaisesRegex(wave.Error,
131 def test_read_no_fmt_no_data_chunk(self):
133 with self.assertRaisesRegex(wave.Error,
137 def test_read_no_data_chunk(self):
140 with self.assertRaisesRegex(wave.Error,
144 def test_read_no_fmt_chunk(self):
147 with self.assertRaisesRegex(wave.Error, 'data chunk before fmt chunk'):
150 def test_read_wrong_form(self):
154 with self.assertRaisesRegex(wave.Error, 'unknown format: 2'):
157 def test_read_wrong_number_of_channels(self):
161 with self.assertRaisesRegex(wave.Error, 'bad # of channels'):
164 def test_read_wrong_sample_width(self):
168 with self.assertRaisesRegex(wave.Error, 'bad sample width'):