Esempio n. 1
0
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
Esempio n. 2
0
 def test_ManifestException(self):
     from roslib.manifestlib import ManifestException
     self.assert_(isinstance(ManifestException(), Exception))