'Make sure simple bool arguments return the right thing.
Args:
method: The name of the method to call.
ret: The return value we expect.'

@pytest.mark.parametrize('method,    ret', [('isatty', False), ('seekable', True)])
def test_bools(self, method, ret, pyqiodev):

    pyqiodev.open(QIODevice.WriteOnly)
    func = getattr(pyqiodev, method)
    assert (func() == ret)
