'Test readable() and writable().
Args:
mode: The mode to open the PyQIODevice in.
readable:  Whether the device should be readable.
writable:  Whether the device should be writable.'

@pytest.mark.parametrize('mode,    readable,    writable', [(QIODevice.ReadOnly, True, False), (QIODevice.ReadWrite, True, True), (QIODevice.WriteOnly, False, True)])
def test_readable_writable(self, mode, readable, writable, pyqiodev):

    assert (not pyqiodev.readable())
    assert (not pyqiodev.writable())
    pyqiodev.open(mode)
    assert (pyqiodev.readable() == readable)
    assert (pyqiodev.writable() == writable)
