Esempio n. 1
0
 def setUp(self):
     self._root = NodeBase(None, '')
     a = NodeBase(self._root, 'a', group='A')
     b = NodeBase(self._root, 'b')
     c = NodeBase(self._root, 'c', group='C')
     NodeBase(a, 'aa', hidden=True)
     NodeBase(a, 'ab', removed=True)
     NodeBase(b, 'ba', parameters={'year': 1980}, description='description')
     NodeBase(b, 'bb', alias='cc')
     NodeBase(c, 'ca', attrib='foo')
     NodeBase(c, 'cb', group='B')
Esempio n. 2
0
 def testRepr(self, *args):
     r = repr(MooseObjectActionNode(NodeBase(None, ''), 'a'))
     self.assertIn('LIGHT_CYAN:a', r)
Esempio n. 3
0
 def testRepr(self, *args):
     r = repr(ActionNode(NodeBase(None, ''), 'a'))
     self.assertIn('LIGHT_MAGENTA:a', r)
Esempio n. 4
0
 def testRepr(self, *args):
     r = repr(MooseObjectNode(NodeBase(None, ''), 'a'))
     self.assertIn('LIGHT_YELLOW:a', r)