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')
def testRepr(self, *args): r = repr(MooseObjectActionNode(NodeBase(None, ''), 'a')) self.assertIn('LIGHT_CYAN:a', r)
def testRepr(self, *args): r = repr(ActionNode(NodeBase(None, ''), 'a')) self.assertIn('LIGHT_MAGENTA:a', r)
def testRepr(self, *args): r = repr(MooseObjectNode(NodeBase(None, ''), 'a')) self.assertIn('LIGHT_YELLOW:a', r)