'Test the closed attribute.'

def test_closed(self, pyqiodev):

    assert pyqiodev.closed
    pyqiodev.open(QIODevice.ReadOnly)
    assert (not pyqiodev.closed)
    pyqiodev.close()
    assert pyqiodev.closed
