def test_attachMany(self): model = Model() p1 = Value(name='foo') p2 = Value(name='bar') model.attach(p1, p2) self.assertIdentical(model.params['foo'], p1) self.assertIdentical(model.params['bar'], p2)
def test_attach(self): model = Model() p = Value(name='foo') model.attach(p) self.assertIdentical(model.params['foo'], p)