- def wrap_rspec (self, type, rspec):
- argument = self.arguments[type]
- p = rspec.xmldoc.xpathNewContext()
- root_node = p.xpathEval('/RSpec')
- if (not root_node or not root_node):
- raise Exception('An evil aggregate manager sent me a malformed RSpec. Please see the stack trace to identify it.')
-
- root_node.addChild(arguments[type])
- return rspec
-