Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _test_getSimpleModelsRelatedWithChEBI(biomodels):
res = biomodels.getSimpleModelsRelatedWithChEBI()
from bioservices import xmltools
res = xmltools.easyXML(res.encode('utf-8'))
modelIDs = set([x.findall('modelId')[0].text for x in res.getchildren()])
assert len(modelIDs) > 1
def test_easyXML():
res = easyXML(xmldata)
res['parameter']
tag/attributes.
Here is a simple example starting from the following XML
.. doctest::
>>> from bioservices import *
>>> doc = " 1 2 "
>>> s = Service("name")
>>> res = s.easyXML(doc)
>>> res.findAll("id")
[1, 2]
"""
from bioservices import xmltools
return xmltools.easyXML(res)