Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
 def test_attach(self):
     model = Model()
     p = Value(name='foo')
     model.attach(p)
     self.assertIdentical(model.params['foo'], p)
Exemple #4
0
 def test_attach(self):
     model = Model()
     p = Value(name='foo')
     model.attach(p)
     self.assertIdentical(model.params['foo'], p)