def METHOD_NAME(self):
    b = b'SPA'
    with self.assertRaises(EOFError):
        sunau.open(io.BytesIO(b))
    b = b'SPAM'
    with self.assertRaisesRegex(sunau.Error, 'bad magic number'):
        sunau.open(io.BytesIO(b))