Test that setframerate is rounded
(self, arg, expected)
| 423 | (44100.6, 44101), |
| 424 | )) |
| 425 | def test_setframerate_rounds(self, arg, expected): |
| 426 | """Test that setframerate is rounded""" |
| 427 | with wave.open(io.BytesIO(), 'wb') as f: |
| 428 | f.setnchannels(1) |
| 429 | f.setsampwidth(2) |
| 430 | f.setframerate(arg) |
| 431 | self.assertEqual(f.getframerate(), expected) |
| 432 | |
| 433 | |
| 434 | class WaveOpen(unittest.TestCase): |
nothing calls this directly
no test coverage detected