def parse(string, filename='string'): """ Parse manifest.xml string contents @param string: manifest.xml contents @type string: str @return: Manifest instance @rtype: L{Manifest} """ v = roslib.manifestlib.parse(Manifest(), string, filename) if v.version: raise ManifestException('<version> tag is not valid in a package manifest.xml file') return v
def test_ManifestException(self): from roslib.manifestlib import ManifestException self.assert_(isinstance(ManifestException(), Exception))