def METHOD_NAME(self):
    d = cuda.Device(100)
    with pytest.raises(cuda.runtime.CUDARuntimeError):
        d.use()
    with pytest.raises(cuda.runtime.CUDARuntimeError):
        with d:
            pass
    with cuda.Device(0):
        pass