add tests for `value` property
@@ -135,12 +135,15 @@ class TestParam(GPflowTestCase):
with self.test_context() as session:
self.p.assign(2.0)
self.assertEqual(self.p.read_value(), 2.0)
+ self.assertEqual(self.p.value, 2.0)
self.m.p = 2.0
self.assertEqual(self.m.p.read_value(), 2.0)
+ self.assertEqual(self.m.p.value, 2.0)
self.p.assign(100.0, session=session)
self.assertEqual(self.p.read_value(session), 100.0)
+ self.assertEqual(self.p.value, 100.0)
def test_create_and_replace(self):
with self.test_context():
