def METHOD_NAME(self):
    b = b'SPAM' + struct.pack('<L', 0)
    with self.assertRaisesRegex(wave.Error,
                                'file does not start with RIFF id'):
        wave.open(io.BytesIO(b))