'Test that streaming an HDU to a file opened in the wrong mode fails as
expected.'

@raises(ValueError)
def test_streaming_hdu_file_wrong_mode(self):

    with open(self.temp('new.fits'), 'wb') as f:
        header = fits.Header()
        fits.StreamingHDU(f, header)
