def test_property(self): self.matrix = MatrixCuda.identity(3) new = MatrixCuda() new.value = self.matrix.value self.assertEqual(new.size(), self.matrix.size()) self.matrix.value = [[1, 2, 3], [4, 5, 6]] np.testing.assert_equal(self.matrix.value, [[1, 2, 3], [4, 5, 6]]) np.testing.assert_equal(self.matrix.size(), (2, 3))