def test_Constraint_setMessage2(self):
    text = libsbml.XMLNode.convertStringToXMLNode(' Some text ', None)
    triple = libsbml.XMLTriple('p', 'http://www.w3.org/1999/xhtml', '')
    att = libsbml.XMLAttributes()
    xmlns = libsbml.XMLNamespaces()
    xmlns.add('http://www.w3.org/1999/xhtml', '')
    p = libsbml.XMLNode(triple, att, xmlns)
    p.addChild(text)
    triple1 = libsbml.XMLTriple('message', '', '')
    att1 = libsbml.XMLAttributes()
    node = libsbml.XMLNode(triple1, att1)
    node.addChild(p)
    i = self.C.setMessage(node)
    self.assert_((i == libsbml.LIBSBML_OPERATION_SUCCESS))
    self.assert_((self.C.isSetMessage() == True))
    i = self.C.unsetMessage()
    self.assert_((i == libsbml.LIBSBML_OPERATION_SUCCESS))
    self.assertEqual(False, self.C.isSetMessage())
    if (self.C.getMessage() != None):
        pass
    node = None
    pass
def test_Constraint_setMessage2(self):
    text = libsbml.XMLNode.convertStringToXMLNode(' Some text ', None)
    triple = libsbml.XMLTriple('p', 'http://www.w3.org/1999/xhtml', )
    att = libsbml.XMLAttributes()
    xmlns = libsbml.XMLNamespaces()
    xmlns.add('http://www.w3.org/1999/xhtml', )
    p = libsbml.XMLNode(triple, att, xmlns)
    p.addChild(text)
    triple1 = libsbml.XMLTriple('message', , )
    att1 = libsbml.XMLAttributes()
    node = libsbml.XMLNode(triple1, att1)
    node.addChild(p)
    i = self.C.setMessage(node)
    self.assert_((i == libsbml.LIBSBML_OPERATION_SUCCESS))
    self.assert_((self.C.isSetMessage() == True))
    i = self.C.unsetMessage()
    self.assert_((i == libsbml.LIBSBML_OPERATION_SUCCESS))
    self.assertEqual(False, self.C.isSetMessage())
    if (self.C.getMessage() != None):
        pass
    node = None
    pass