Back to index

python-biopython  1.60
Public Member Functions
test_Entrez.EGQueryTest Class Reference

List of all members.

Public Member Functions

def test_egquery1
def test_egquery2

Detailed Description

Tests for parsing XML output returned by EGQuery

Definition at line 3443 of file test_Entrez.py.


Member Function Documentation

Test parsing XML output returned by EGQuery (first test)

Definition at line 3446 of file test_Entrez.py.

03446 
03447     def test_egquery1(self):
03448         '''Test parsing XML output returned by EGQuery (first test)
03449         '''
03450         # Display counts in XML for stem cells in each Entrez database
03451         # To create the XML file, use
03452         # >>> Bio.Entrez.egquery(term="stem cells")
03453         handle = open('Entrez/egquery1.xml', "rb")
03454         record = Entrez.read(handle)
03455         handle.close()
03456         self.assertEqual(record["Term"], "stem cells")
03457 
03458         self.assertEqual(record["eGQueryResult"][0]["DbName"], "pubmed")
03459         self.assertEqual(record["eGQueryResult"][0]["MenuName"], "PubMed")
03460         self.assertEqual(record["eGQueryResult"][0]["Count"], "392")
03461         self.assertEqual(record["eGQueryResult"][0]["Status"], "Ok")
03462         self.assertEqual(record["eGQueryResult"][1]["DbName"], "pmc")
03463         self.assertEqual(record["eGQueryResult"][1]["MenuName"], "PMC")
03464         self.assertEqual(record["eGQueryResult"][1]["Count"], "173")
03465         self.assertEqual(record["eGQueryResult"][1]["Status"], "Ok")
03466         self.assertEqual(record["eGQueryResult"][2]["DbName"], "journals")
03467         self.assertEqual(record["eGQueryResult"][2]["MenuName"], "Journals")
03468         self.assertEqual(record["eGQueryResult"][2]["Count"], "0")
03469         self.assertEqual(record["eGQueryResult"][2]["Status"], "Term or Database is not found")
03470         self.assertEqual(record["eGQueryResult"][3]["DbName"], "mesh")
03471         self.assertEqual(record["eGQueryResult"][3]["MenuName"], "MeSH")
03472         self.assertEqual(record["eGQueryResult"][3]["Count"], "0")
03473         self.assertEqual(record["eGQueryResult"][3]["Status"], "Term or Database is not found")
03474         self.assertEqual(record["eGQueryResult"][4]["DbName"], "books")
03475         self.assertEqual(record["eGQueryResult"][4]["MenuName"], "Books")
03476         self.assertEqual(record["eGQueryResult"][4]["Count"], "10")
03477         self.assertEqual(record["eGQueryResult"][4]["Status"], "Ok")
03478         self.assertEqual(record["eGQueryResult"][5]["DbName"], "omim")
03479         self.assertEqual(record["eGQueryResult"][5]["MenuName"], "OMIM")
03480         self.assertEqual(record["eGQueryResult"][5]["Count"], "0")
03481         self.assertEqual(record["eGQueryResult"][5]["Status"], "Term or Database is not found")
03482         self.assertEqual(record["eGQueryResult"][6]["DbName"], "omia")
03483         self.assertEqual(record["eGQueryResult"][6]["MenuName"], "OMIA")
03484         self.assertEqual(record["eGQueryResult"][6]["Count"], "0")
03485         self.assertEqual(record["eGQueryResult"][6]["Status"], "Term or Database is not found")
03486         self.assertEqual(record["eGQueryResult"][7]["DbName"], "ncbisearch")
03487         self.assertEqual(record["eGQueryResult"][7]["MenuName"], "NCBI Web Site")
03488         self.assertEqual(record["eGQueryResult"][7]["Count"], "0")
03489         self.assertEqual(record["eGQueryResult"][7]["Status"], "Term or Database is not found")
03490         self.assertEqual(record["eGQueryResult"][8]["DbName"], "nuccore")
03491         self.assertEqual(record["eGQueryResult"][8]["MenuName"], "CoreNucleotide")
03492         self.assertEqual(record["eGQueryResult"][8]["Count"], "0")
03493         self.assertEqual(record["eGQueryResult"][8]["Status"], "Term or Database is not found")
03494         self.assertEqual(record["eGQueryResult"][9]["DbName"], "nucgss")
03495         self.assertEqual(record["eGQueryResult"][9]["MenuName"], "GSS")
03496         self.assertEqual(record["eGQueryResult"][9]["Count"], "0")
03497         self.assertEqual(record["eGQueryResult"][9]["Status"], "Term or Database is not found")
03498         self.assertEqual(record["eGQueryResult"][10]["DbName"], "nucest")
03499         self.assertEqual(record["eGQueryResult"][10]["MenuName"], "EST")
03500         self.assertEqual(record["eGQueryResult"][10]["Count"], "0")
03501         self.assertEqual(record["eGQueryResult"][10]["Status"], "Term or Database is not found")
03502         self.assertEqual(record["eGQueryResult"][11]["DbName"], "protein")
03503         self.assertEqual(record["eGQueryResult"][11]["MenuName"], "Protein")
03504         self.assertEqual(record["eGQueryResult"][11]["Count"], "0")
03505         self.assertEqual(record["eGQueryResult"][11]["Status"], "Term or Database is not found")
03506         self.assertEqual(record["eGQueryResult"][12]["DbName"], "genome")
03507         self.assertEqual(record["eGQueryResult"][12]["MenuName"], "Genome")
03508         self.assertEqual(record["eGQueryResult"][12]["Count"], "0")
03509         self.assertEqual(record["eGQueryResult"][12]["Status"], "Term or Database is not found")
03510         self.assertEqual(record["eGQueryResult"][13]["DbName"], "structure")
03511         self.assertEqual(record["eGQueryResult"][13]["MenuName"], "Structure")
03512         self.assertEqual(record["eGQueryResult"][13]["Count"], "0")
03513         self.assertEqual(record["eGQueryResult"][13]["Status"], "Term or Database is not found")
03514         self.assertEqual(record["eGQueryResult"][14]["DbName"], "taxonomy")
03515         self.assertEqual(record["eGQueryResult"][14]["MenuName"], "Taxonomy")
03516         self.assertEqual(record["eGQueryResult"][14]["Count"], "0")
03517         self.assertEqual(record["eGQueryResult"][14]["Status"], "Term or Database is not found")
03518         self.assertEqual(record["eGQueryResult"][15]["DbName"], "snp")
03519         self.assertEqual(record["eGQueryResult"][15]["MenuName"], "SNP")
03520         self.assertEqual(record["eGQueryResult"][15]["Count"], "0")
03521         self.assertEqual(record["eGQueryResult"][15]["Status"], "Term or Database is not found")
03522         self.assertEqual(record["eGQueryResult"][16]["DbName"], "gene")
03523         self.assertEqual(record["eGQueryResult"][16]["MenuName"], "Gene")
03524         self.assertEqual(record["eGQueryResult"][16]["Count"], "0")
03525         self.assertEqual(record["eGQueryResult"][16]["Status"], "Term or Database is not found")
03526         self.assertEqual(record["eGQueryResult"][17]["DbName"], "unigene")
03527         self.assertEqual(record["eGQueryResult"][17]["MenuName"], "UniGene")
03528         self.assertEqual(record["eGQueryResult"][17]["Count"], "0")
03529         self.assertEqual(record["eGQueryResult"][17]["Status"], "Term or Database is not found")
03530         self.assertEqual(record["eGQueryResult"][18]["DbName"], "cdd")
03531         self.assertEqual(record["eGQueryResult"][18]["MenuName"], "Conserved Domains")
03532         self.assertEqual(record["eGQueryResult"][18]["Count"], "0")
03533         self.assertEqual(record["eGQueryResult"][18]["Status"], "Term or Database is not found")
03534         self.assertEqual(record["eGQueryResult"][19]["DbName"], "domains")
03535         self.assertEqual(record["eGQueryResult"][19]["MenuName"], "3D Domains")
03536         self.assertEqual(record["eGQueryResult"][19]["Count"], "0")
03537         self.assertEqual(record["eGQueryResult"][19]["Status"], "Term or Database is not found")
03538         self.assertEqual(record["eGQueryResult"][20]["DbName"], "unists")
03539         self.assertEqual(record["eGQueryResult"][20]["MenuName"], "UniSTS")
03540         self.assertEqual(record["eGQueryResult"][20]["Count"], "0")
03541         self.assertEqual(record["eGQueryResult"][20]["Status"], "Term or Database is not found")
03542         self.assertEqual(record["eGQueryResult"][21]["DbName"], "popset")
03543         self.assertEqual(record["eGQueryResult"][21]["MenuName"], "PopSet")
03544         self.assertEqual(record["eGQueryResult"][21]["Count"], "0")
03545         self.assertEqual(record["eGQueryResult"][21]["Status"], "Term or Database is not found")
03546         self.assertEqual(record["eGQueryResult"][22]["DbName"], "geo")
03547         self.assertEqual(record["eGQueryResult"][22]["MenuName"], "GEO Profiles")
03548         self.assertEqual(record["eGQueryResult"][22]["Count"], "0")
03549         self.assertEqual(record["eGQueryResult"][22]["Status"], "Term or Database is not found")
03550         self.assertEqual(record["eGQueryResult"][23]["DbName"], "gds")
03551         self.assertEqual(record["eGQueryResult"][23]["MenuName"], "GEO DataSets")
03552         self.assertEqual(record["eGQueryResult"][23]["Count"], "0")
03553         self.assertEqual(record["eGQueryResult"][23]["Status"], "Term or Database is not found")
03554         self.assertEqual(record["eGQueryResult"][24]["DbName"], "homologene")
03555         self.assertEqual(record["eGQueryResult"][24]["MenuName"], "HomoloGene")
03556         self.assertEqual(record["eGQueryResult"][24]["Count"], "0")
03557         self.assertEqual(record["eGQueryResult"][24]["Status"], "Term or Database is not found")
03558         self.assertEqual(record["eGQueryResult"][25]["DbName"], "cancerchromosomes")
03559         self.assertEqual(record["eGQueryResult"][25]["MenuName"], "CancerChromosomes")
03560         self.assertEqual(record["eGQueryResult"][25]["Count"], "0")
03561         self.assertEqual(record["eGQueryResult"][25]["Status"], "Term or Database is not found")
03562         self.assertEqual(record["eGQueryResult"][26]["DbName"], "pccompound")
03563         self.assertEqual(record["eGQueryResult"][26]["MenuName"], "PubChem Compound")
03564         self.assertEqual(record["eGQueryResult"][26]["Count"], "0")
03565         self.assertEqual(record["eGQueryResult"][26]["Status"], "Term or Database is not found")
03566         self.assertEqual(record["eGQueryResult"][27]["DbName"], "pcsubstance")
03567         self.assertEqual(record["eGQueryResult"][27]["MenuName"], "PubChem Substance")
03568         self.assertEqual(record["eGQueryResult"][27]["Count"], "0")
03569         self.assertEqual(record["eGQueryResult"][27]["Status"], "Term or Database is not found")
03570         self.assertEqual(record["eGQueryResult"][28]["DbName"], "pcassay")
03571         self.assertEqual(record["eGQueryResult"][28]["MenuName"], "PubChem BioAssay")
03572         self.assertEqual(record["eGQueryResult"][28]["Count"], "0")
03573         self.assertEqual(record["eGQueryResult"][28]["Status"], "Term or Database is not found")
03574         self.assertEqual(record["eGQueryResult"][29]["DbName"], "nlmcatalog")
03575         self.assertEqual(record["eGQueryResult"][29]["MenuName"], "NLM Catalog")
03576         self.assertEqual(record["eGQueryResult"][29]["Count"], "2")
03577         self.assertEqual(record["eGQueryResult"][29]["Status"], "Ok")
03578         self.assertEqual(record["eGQueryResult"][30]["DbName"], "gensat")
03579         self.assertEqual(record["eGQueryResult"][30]["MenuName"], "GENSAT")
03580         self.assertEqual(record["eGQueryResult"][30]["Count"], "0")
03581         self.assertEqual(record["eGQueryResult"][30]["Status"], "Term or Database is not found")
03582         self.assertEqual(record["eGQueryResult"][31]["DbName"], "probe")
03583         self.assertEqual(record["eGQueryResult"][31]["MenuName"], "Probe")
03584         self.assertEqual(record["eGQueryResult"][31]["Count"], "0")
03585         self.assertEqual(record["eGQueryResult"][31]["Status"], "Term or Database is not found")
03586         self.assertEqual(record["eGQueryResult"][32]["DbName"], "genomeprj")
03587         self.assertEqual(record["eGQueryResult"][32]["MenuName"], "Genome Project")
03588         self.assertEqual(record["eGQueryResult"][32]["Count"], "0")
03589         self.assertEqual(record["eGQueryResult"][32]["Status"], "Term or Database is not found")
03590         self.assertEqual(record["eGQueryResult"][33]["DbName"], "gap")
03591         self.assertEqual(record["eGQueryResult"][33]["MenuName"], "dbGaP")
03592         self.assertEqual(record["eGQueryResult"][33]["Count"], "0")
03593         self.assertEqual(record["eGQueryResult"][33]["Status"], "Term or Database is not found")
03594         self.assertEqual(record["eGQueryResult"][34]["DbName"], "proteinclusters")
03595         self.assertEqual(record["eGQueryResult"][34]["MenuName"], "Protein Clusters")
03596         self.assertEqual(record["eGQueryResult"][34]["Count"], "0")
03597         self.assertEqual(record["eGQueryResult"][34]["Status"], "Term or Database is not found")

Here is the call graph for this function:

Test parsing XML output returned by EGQuery (second test)

Definition at line 3598 of file test_Entrez.py.

03598 
03599     def test_egquery2(self):
03600         '''Test parsing XML output returned by EGQuery (second test)
03601         '''
03602         # Display counts in XML for brca1 or brca2 for each Entrez database
03603         # To create the XML file, use
03604         # >>> Bio.Entrez.egquery(term="brca1 OR brca2")
03605         handle = open('Entrez/egquery2.xml', "rb")
03606         record = Entrez.read(handle)
03607         handle.close()
03608         self.assertEqual(record["Term"], "brca1 OR brca2")
03609 
03610         self.assertEqual(record["eGQueryResult"][0]["DbName"], "pubmed")
03611         self.assertEqual(record["eGQueryResult"][0]["MenuName"], "PubMed")
03612         self.assertEqual(record["eGQueryResult"][0]["Count"], "0")
03613         self.assertEqual(record["eGQueryResult"][0]["Status"], "Term or Database is not found")
03614         self.assertEqual(record["eGQueryResult"][1]["DbName"], "pmc")
03615         self.assertEqual(record["eGQueryResult"][1]["MenuName"], "PMC")
03616         self.assertEqual(record["eGQueryResult"][1]["Count"], "2739")
03617         self.assertEqual(record["eGQueryResult"][1]["Status"], "Ok")
03618         self.assertEqual(record["eGQueryResult"][2]["DbName"], "journals")
03619         self.assertEqual(record["eGQueryResult"][2]["MenuName"], "Journals")
03620         self.assertEqual(record["eGQueryResult"][2]["Count"], "0")
03621         self.assertEqual(record["eGQueryResult"][2]["Status"], "Term or Database is not found")
03622         self.assertEqual(record["eGQueryResult"][3]["DbName"], "mesh")
03623         self.assertEqual(record["eGQueryResult"][3]["MenuName"], "MeSH")
03624         self.assertEqual(record["eGQueryResult"][3]["Count"], "29")
03625         self.assertEqual(record["eGQueryResult"][3]["Status"], "Ok")
03626         self.assertEqual(record["eGQueryResult"][4]["DbName"], "books")
03627         self.assertEqual(record["eGQueryResult"][4]["MenuName"], "Books")
03628         self.assertEqual(record["eGQueryResult"][4]["Count"], "392")
03629         self.assertEqual(record["eGQueryResult"][4]["Status"], "Ok")
03630         self.assertEqual(record["eGQueryResult"][5]["DbName"], "omim")
03631         self.assertEqual(record["eGQueryResult"][5]["MenuName"], "OMIM")
03632         self.assertEqual(record["eGQueryResult"][5]["Count"], "149")
03633         self.assertEqual(record["eGQueryResult"][5]["Status"], "Ok")
03634         self.assertEqual(record["eGQueryResult"][6]["DbName"], "omia")
03635         self.assertEqual(record["eGQueryResult"][6]["MenuName"], "OMIA")
03636         self.assertEqual(record["eGQueryResult"][6]["Count"], "0")
03637         self.assertEqual(record["eGQueryResult"][6]["Status"], "Term or Database is not found")
03638         self.assertEqual(record["eGQueryResult"][7]["DbName"], "ncbisearch")
03639         self.assertEqual(record["eGQueryResult"][7]["MenuName"], "NCBI Web Site")
03640         self.assertEqual(record["eGQueryResult"][7]["Count"], "13")
03641         self.assertEqual(record["eGQueryResult"][7]["Status"], "Ok")
03642         self.assertEqual(record["eGQueryResult"][8]["DbName"], "nuccore")
03643         self.assertEqual(record["eGQueryResult"][8]["MenuName"], "CoreNucleotide")
03644         self.assertEqual(record["eGQueryResult"][8]["Count"], "4917")
03645         self.assertEqual(record["eGQueryResult"][8]["Status"], "Ok")
03646         self.assertEqual(record["eGQueryResult"][9]["DbName"], "nucgss")
03647         self.assertEqual(record["eGQueryResult"][9]["MenuName"], "GSS")
03648         self.assertEqual(record["eGQueryResult"][9]["Count"], "184")
03649         self.assertEqual(record["eGQueryResult"][9]["Status"], "Ok")
03650         self.assertEqual(record["eGQueryResult"][10]["DbName"], "nucest")
03651         self.assertEqual(record["eGQueryResult"][10]["MenuName"], "EST")
03652         self.assertEqual(record["eGQueryResult"][10]["Count"], "600")
03653         self.assertEqual(record["eGQueryResult"][10]["Status"], "Ok")
03654         self.assertEqual(record["eGQueryResult"][11]["DbName"], "protein")
03655         self.assertEqual(record["eGQueryResult"][11]["MenuName"], "Protein")
03656         self.assertEqual(record["eGQueryResult"][11]["Count"], "6779")
03657         self.assertEqual(record["eGQueryResult"][11]["Status"], "Ok")
03658         self.assertEqual(record["eGQueryResult"][12]["DbName"], "genome")
03659         self.assertEqual(record["eGQueryResult"][12]["MenuName"], "Genome")
03660         self.assertEqual(record["eGQueryResult"][12]["Count"], "44")
03661         self.assertEqual(record["eGQueryResult"][12]["Status"], "Ok")
03662         self.assertEqual(record["eGQueryResult"][13]["DbName"], "structure")
03663         self.assertEqual(record["eGQueryResult"][13]["MenuName"], "Structure")
03664         self.assertEqual(record["eGQueryResult"][13]["Count"], "29")
03665         self.assertEqual(record["eGQueryResult"][13]["Status"], "Ok")
03666         self.assertEqual(record["eGQueryResult"][14]["DbName"], "taxonomy")
03667         self.assertEqual(record["eGQueryResult"][14]["MenuName"], "Taxonomy")
03668         self.assertEqual(record["eGQueryResult"][14]["Count"], "0")
03669         self.assertEqual(record["eGQueryResult"][14]["Status"], "Term or Database is not found")
03670         self.assertEqual(record["eGQueryResult"][15]["DbName"], "snp")
03671         self.assertEqual(record["eGQueryResult"][15]["MenuName"], "SNP")
03672         self.assertEqual(record["eGQueryResult"][15]["Count"], "2013")
03673         self.assertEqual(record["eGQueryResult"][15]["Status"], "Ok")
03674         self.assertEqual(record["eGQueryResult"][16]["DbName"], "gene")
03675         self.assertEqual(record["eGQueryResult"][16]["MenuName"], "Gene")
03676         self.assertEqual(record["eGQueryResult"][16]["Count"], "1775")
03677         self.assertEqual(record["eGQueryResult"][16]["Status"], "Ok")
03678         self.assertEqual(record["eGQueryResult"][17]["DbName"], "unigene")
03679         self.assertEqual(record["eGQueryResult"][17]["MenuName"], "UniGene")
03680         self.assertEqual(record["eGQueryResult"][17]["Count"], "207")
03681         self.assertEqual(record["eGQueryResult"][17]["Status"], "Ok")
03682         self.assertEqual(record["eGQueryResult"][18]["DbName"], "cdd")
03683         self.assertEqual(record["eGQueryResult"][18]["MenuName"], "Conserved Domains")
03684         self.assertEqual(record["eGQueryResult"][18]["Count"], "17")
03685         self.assertEqual(record["eGQueryResult"][18]["Status"], "Ok")
03686         self.assertEqual(record["eGQueryResult"][19]["DbName"], "domains")
03687         self.assertEqual(record["eGQueryResult"][19]["MenuName"], "3D Domains")
03688         self.assertEqual(record["eGQueryResult"][19]["Count"], "131")
03689         self.assertEqual(record["eGQueryResult"][19]["Status"], "Ok")
03690         self.assertEqual(record["eGQueryResult"][20]["DbName"], "unists")
03691         self.assertEqual(record["eGQueryResult"][20]["MenuName"], "UniSTS")
03692         self.assertEqual(record["eGQueryResult"][20]["Count"], "198")
03693         self.assertEqual(record["eGQueryResult"][20]["Status"], "Ok")
03694         self.assertEqual(record["eGQueryResult"][21]["DbName"], "popset")
03695         self.assertEqual(record["eGQueryResult"][21]["MenuName"], "PopSet")
03696         self.assertEqual(record["eGQueryResult"][21]["Count"], "43")
03697         self.assertEqual(record["eGQueryResult"][21]["Status"], "Ok")
03698         self.assertEqual(record["eGQueryResult"][22]["DbName"], "geo")
03699         self.assertEqual(record["eGQueryResult"][22]["MenuName"], "GEO Profiles")
03700         self.assertEqual(record["eGQueryResult"][22]["Count"], "128692")
03701         self.assertEqual(record["eGQueryResult"][22]["Status"], "Ok")
03702         self.assertEqual(record["eGQueryResult"][23]["DbName"], "gds")
03703         self.assertEqual(record["eGQueryResult"][23]["MenuName"], "GEO DataSets")
03704         self.assertEqual(record["eGQueryResult"][23]["Count"], "21")
03705         self.assertEqual(record["eGQueryResult"][23]["Status"], "Ok")
03706         self.assertEqual(record["eGQueryResult"][24]["DbName"], "homologene")
03707         self.assertEqual(record["eGQueryResult"][24]["MenuName"], "HomoloGene")
03708         self.assertEqual(record["eGQueryResult"][24]["Count"], "50")
03709         self.assertEqual(record["eGQueryResult"][24]["Status"], "Ok")
03710         self.assertEqual(record["eGQueryResult"][25]["DbName"], "cancerchromosomes")
03711         self.assertEqual(record["eGQueryResult"][25]["MenuName"], "CancerChromosomes")
03712         self.assertEqual(record["eGQueryResult"][25]["Count"], "18")
03713         self.assertEqual(record["eGQueryResult"][25]["Status"], "Ok")
03714         self.assertEqual(record["eGQueryResult"][26]["DbName"], "pccompound")
03715         self.assertEqual(record["eGQueryResult"][26]["MenuName"], "PubChem Compound")
03716         self.assertEqual(record["eGQueryResult"][26]["Count"], "0")
03717         self.assertEqual(record["eGQueryResult"][26]["Status"], "Term or Database is not found")
03718         self.assertEqual(record["eGQueryResult"][27]["DbName"], "pcsubstance")
03719         self.assertEqual(record["eGQueryResult"][27]["MenuName"], "PubChem Substance")
03720         self.assertEqual(record["eGQueryResult"][27]["Count"], "26")
03721         self.assertEqual(record["eGQueryResult"][27]["Status"], "Ok")
03722         self.assertEqual(record["eGQueryResult"][28]["DbName"], "pcassay")
03723         self.assertEqual(record["eGQueryResult"][28]["MenuName"], "PubChem BioAssay")
03724         self.assertEqual(record["eGQueryResult"][28]["Count"], "0")
03725         self.assertEqual(record["eGQueryResult"][28]["Status"], "Term or Database is not found")
03726         self.assertEqual(record["eGQueryResult"][29]["DbName"], "nlmcatalog")
03727         self.assertEqual(record["eGQueryResult"][29]["MenuName"], "NLM Catalog")
03728         self.assertEqual(record["eGQueryResult"][29]["Count"], "31")
03729         self.assertEqual(record["eGQueryResult"][29]["Status"], "Ok")
03730         self.assertEqual(record["eGQueryResult"][30]["DbName"], "gensat")
03731         self.assertEqual(record["eGQueryResult"][30]["MenuName"], "GENSAT")
03732         self.assertEqual(record["eGQueryResult"][30]["Count"], "0")
03733         self.assertEqual(record["eGQueryResult"][30]["Status"], "Term or Database is not found")
03734         self.assertEqual(record["eGQueryResult"][31]["DbName"], "probe")
03735         self.assertEqual(record["eGQueryResult"][31]["MenuName"], "Probe")
03736         self.assertEqual(record["eGQueryResult"][31]["Count"], "1410")
03737         self.assertEqual(record["eGQueryResult"][31]["Status"], "Ok")
03738         self.assertEqual(record["eGQueryResult"][32]["DbName"], "genomeprj")
03739         self.assertEqual(record["eGQueryResult"][32]["MenuName"], "Genome Project")
03740         self.assertEqual(record["eGQueryResult"][32]["Count"], "0")
03741         self.assertEqual(record["eGQueryResult"][32]["Status"], "Term or Database is not found")
03742         self.assertEqual(record["eGQueryResult"][33]["DbName"], "gap")
03743         self.assertEqual(record["eGQueryResult"][33]["MenuName"], "dbGaP")
03744         self.assertEqual(record["eGQueryResult"][33]["Count"], "0")
03745         self.assertEqual(record["eGQueryResult"][33]["Status"], "Term or Database is not found")
03746         self.assertEqual(record["eGQueryResult"][34]["DbName"], "proteinclusters")
03747         self.assertEqual(record["eGQueryResult"][34]["MenuName"], "Protein Clusters")
03748         self.assertEqual(record["eGQueryResult"][34]["Count"], "0")
03749         self.assertEqual(record["eGQueryResult"][34]["Status"], "Term or Database is not found")

Here is the call graph for this function:


The documentation for this class was generated from the following file: