def METHOD_NAME(self):
    dtype = np.dtype('uint32')
    n = 10
    sz = dtype.itemsize * 10
    devary = self.context.memalloc(sz)
    driver.device_memset(devary, 0xab, sz)
    hstary = np.empty(n, dtype=dtype)
    driver.device_to_host(hstary, devary, sz)
    hstary2 = np.array([0xabababab] * n, dtype=np.dtype('uint32'))
    self.assertTrue(np.all(hstary == hstary2))