'Test that FITSDiff can run the different inputs without crashing.'

def test_printdiff(self):

    assert (printdiff(self.data('arange.fits'), self.data('blank.fits')) is None)
    assert (printdiff(self.data('arange.fits'), self.data('blank.fits'), ext=0) is None)
    assert (printdiff(self.data('o4sp040b0_raw.fits'), self.data('o4sp040b0_raw.fits'), extname='sci') is None)
    with pytest.raises(IOError):
        printdiff('o4sp040b0_raw.fits', 'fakefile.fits', extname='sci')
    with fits.open(self.data('stddata.fits'), mode='readonly') as in1:
        with fits.open(self.data('checksum.fits'), mode='readonly') as in2:
            assert (printdiff(in1[0], in2[0]) is None)
            with pytest.raises(ValueError):
                printdiff(in1[0], in2[0], ext=0)
            assert (printdiff(in1, in2) is None)
            with pytest.raises(NotImplementedError):
                printdiff(in1, in2, 0)
