def test_1_empty(self): system.configure(os.path.join(properties.ROOT, 'mpx/system/_test_1_empty.xml')) root = as_internal_node('/') if root.exception is None or isinstance(root.exception, SAXException): return raise root.exception
def test_1_empty(self): system.configure( os.path.join(properties.ROOT, 'mpx/system/_test_1_empty.xml')) root = as_internal_node('/') if root.exception is None or isinstance(root.exception, SAXException): return raise root.exception
def test_2_anchors_only(self): system.configure(os.path.join(properties.ROOT, 'mpx/system/_test_2_anchors_only.xml')) root = as_internal_node('/') if root.exception is not None: args = [] args.extend(root.exception.args) args.append('Unexpected exception instiating anchors only.') raise root.exception for node in root.children_nodes(): if node.name not in ('services','interfaces', 'aliases'): raise 'Unexpected anchor node %s' % as_node_url(node) # Now add on the "required" services. system.ensure_minimal_configuration() return
def test_2_anchors_only(self): system.configure( os.path.join(properties.ROOT, 'mpx/system/_test_2_anchors_only.xml')) root = as_internal_node('/') if root.exception is not None: args = [] args.extend(root.exception.args) args.append('Unexpected exception instiating anchors only.') raise root.exception for node in root.children_nodes(): if node.name not in ('services', 'interfaces', 'aliases'): raise 'Unexpected anchor node %s' % as_node_url(node) # Now add on the "required" services. system.ensure_minimal_configuration() return