'A problem was revealed by a customer that the use cuda.to_device
does not create a CUDA context.
This tests the problem'

def test_auto_context(self):

    A = np.arange(10, dtype=np.float32)
    newA = np.empty_like(A)
    dA = cuda.to_device(A)
    dA.copy_to_host(newA)
    self.assertTrue(np.allclose(A, newA))
