Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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