def test_read_closed_file(self):

        f = open(self.data('test0.fits'), 'rb')
        f.close()
        assert len(fits.open(f)) == 5
called when the connection has finished closing
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_core.py/TestFileFunctions.test_read_closed_file--crossover with--dataset/ETHPy150Open pika/pika/tests/acceptance/async_test_base.py/AsyncTestCase.on_closed