def test_constant_copy(self): """Test the copy function for Constants. """ x = Constant(2) y = x.copy() self.assertEqual(y.shape, tuple()) self.assertEqual(y.value, 2)
def test_constant_copy(self): """Test the copy function for Constants. """ x = Constant(2) y = x.copy() self.assertEquals(y.size, (1, 1)) self.assertEquals(y.value, 2)
def test_constant_copy(self): """Test the copy function for Constants. """ x = Constant(2) y = x.copy() self.assertEqual(y.size, (1, 1)) self.assertEqual(y.value, 2)