def METHOD_NAME(self):
    b = b'RIFF' + struct.pack('<L', 12) + b'WAVE'
    b += b'data' + struct.pack('<L', 0)
    with self.assertRaisesRegex(wave.Error, 'data chunk before fmt chunk'):
        wave.open(io.BytesIO(b))