707 def _isValid(self,value):
710 def __init__(self,*arg,**args):
712 _ParameterTypeBase.__init__(self)
713 _Parameterizable.__init__(self,*arg,**args)
718 x = __PSet(a = __TestType(4),
720 c = __PSet(gamma = __TestType(5))))
727 self.assertEqual(a.t.value(),1)
728 self.assertEqual(a.u.value(),2)
729 self.assertEqual(b.t.value(),3)
730 self.assertEqual(b.u.value(),2)
731 self.assertEqual(b.v.value(),4)
732 self.assertEqual(b.x.a.value(),7)
733 self.assertEqual(b.x.b.value(),6)
734 self.assertEqual(b.x.c.gamma.value(),8)
735 self.assertEqual(b.x.d.value(),9)
736 self.assertEqual(hasattr(b,
"w"),
False)
self.assertRaises(TypeError,a.clone,
None,**{
"v":1})