Back to index

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

List of all members.

Public Member Functions

def test_pubmed
def test_journals
def test_protein
def test_nucleotide
def test_structure
def test_taxonomy
def test_unists
def test_wrong

Detailed Description

Tests for parsing XML output returned by ESummary

Definition at line 1302 of file test_Entrez.py.


Member Function Documentation

Test parsing XML returned by ESummary from the Journals database

Definition at line 1389 of file test_Entrez.py.

01389 
01390     def test_journals(self):
01391         '''Test parsing XML returned by ESummary from the Journals database
01392         '''
01393         # In Journals display records for journal IDs 27731,439,735,905 
01394         # To create the XML file, use
01395         # >>> Bio.Entrez.esummary(db="journals", id="27731,439,735,905")
01396         handle = open('Entrez/esummary2.xml', "rb")
01397         record = Entrez.read(handle)
01398         handle.close()
01399         self.assertEqual(record[0]["Id"], "27731")
01400         self.assertEqual(record[0]["Title"], "The American journal of obstetrics and diseases of women and children")
01401         self.assertEqual(record[0]["MedAbbr"], "Am J Obstet Dis Women Child")
01402         self.assertEqual(record[0]["IsoAbbr"], "")
01403         self.assertEqual(record[0]["NlmId"], "14820330R")
01404         self.assertEqual(record[0]["pISSN"], "0894-5543")
01405         self.assertEqual(record[0]["eISSN"], "")
01406         self.assertEqual(record[0]["PublicationStartYear"], "1868")
01407         self.assertEqual(record[0]["PublicationEndYear"], "1919")
01408         self.assertEqual(record[0]["Publisher"], "W.A. Townsend & Adams, $c [1868-1919]")
01409         self.assertEqual(record[0]["Language"], "eng")
01410         self.assertEqual(record[0]["Country"], "United States")
01411         self.assertEqual(len(record[0]["BroadHeading"]), 0)
01412         self.assertEqual(record[0]["ContinuationNotes"], "")
01413 
01414         self.assertEqual(record[1]["Id"], "439")
01415         self.assertEqual(record[1]["Title"], "American journal of obstetrics and gynecology")
01416         self.assertEqual(record[1]["MedAbbr"], "Am J Obstet Gynecol")
01417         self.assertEqual(record[1]["IsoAbbr"], "Am. J. Obstet. Gynecol.")
01418         self.assertEqual(record[1]["NlmId"], "0370476")
01419         self.assertEqual(record[1]["pISSN"], "0002-9378")
01420         self.assertEqual(record[1]["eISSN"], "1097-6868")
01421         self.assertEqual(record[1]["PublicationStartYear"], "1920")
01422         self.assertEqual(record[1]["PublicationEndYear"], "")
01423         self.assertEqual(record[1]["Publisher"], "Elsevier,")
01424         self.assertEqual(record[1]["Language"], "eng")
01425         self.assertEqual(record[1]["Country"], "United States")
01426         self.assertEqual(len(record[1]["BroadHeading"]), 2)
01427         self.assertEqual(record[1]["BroadHeading"][0], "Gynecology")
01428         self.assertEqual(record[1]["BroadHeading"][1], "Obstetrics")
01429         self.assertEqual(record[1]["ContinuationNotes"], "Continues: American journal of obstetrics and diseases of women and children. ")
01430 
01431         self.assertEqual(record[2]["Id"], "735")
01432         self.assertEqual(record[2]["Title"], "Archives of gynecology and obstetrics")
01433         self.assertEqual(record[2]["MedAbbr"], "Arch Gynecol Obstet")
01434         self.assertEqual(record[2]["IsoAbbr"], "Arch. Gynecol. Obstet.")
01435         self.assertEqual(record[2]["NlmId"], "8710213")
01436         self.assertEqual(record[2]["pISSN"], "0932-0067")
01437         self.assertEqual(record[2]["eISSN"], "1432-0711")
01438         self.assertEqual(record[2]["PublicationStartYear"], "1987")
01439         self.assertEqual(record[2]["PublicationEndYear"], "")
01440         self.assertEqual(record[2]["Publisher"], "Springer Verlag")
01441         self.assertEqual(record[2]["Language"], "eng")
01442         self.assertEqual(record[2]["Country"], "Germany")
01443         self.assertEqual(len(record[2]["BroadHeading"]), 2)
01444         self.assertEqual(record[2]["BroadHeading"][0], "Gynecology")
01445         self.assertEqual(record[2]["BroadHeading"][1], "Obstetrics")
01446         self.assertEqual(record[2]["ContinuationNotes"], "Continues: Archives of gynecology. ")
01447 
01448         self.assertEqual(record[3]["Id"], "905")
01449         self.assertEqual(record[3]["Title"], "Asia-Oceania journal of obstetrics and gynaecology / AOFOG")
01450         self.assertEqual(record[3]["MedAbbr"], "Asia Oceania J Obstet Gynaecol")
01451         self.assertEqual(record[3]["IsoAbbr"], "")
01452         self.assertEqual(record[3]["NlmId"], "8102781")
01453         self.assertEqual(record[3]["pISSN"], "0389-2328")
01454         self.assertEqual(record[3]["eISSN"], "")
01455         self.assertEqual(record[3]["PublicationStartYear"], "1980")
01456         self.assertEqual(record[3]["PublicationEndYear"], "1994")
01457         self.assertEqual(record[3]["Publisher"], "University Of Tokyo Press")
01458         self.assertEqual(record[3]["Language"], "eng")
01459         self.assertEqual(record[3]["Country"], "Japan")
01460         self.assertEqual(len(record[3]["BroadHeading"]), 2)
01461         self.assertEqual(record[3]["BroadHeading"][0], "Gynecology")
01462         self.assertEqual(record[3]["BroadHeading"][1], "Obstetrics")
01463         self.assertEqual(record[3]["ContinuationNotes"], "Continues: Journal of the Asian Federation of Obstetrics and Gynaecology. Continued by: Journal of obstetrics and gynaecology (Tokyo, Japan). ")

Here is the call graph for this function:

Test parsing XML returned by ESummary from the Nucleotide database

Definition at line 1501 of file test_Entrez.py.

01501 
01502     def test_nucleotide(self):
01503         '''Test parsing XML returned by ESummary from the Nucleotide database
01504         '''
01505         # In Nucleotide display records for GIs 28864546 and 28800981
01506         # in xml retrieval mode
01507         # To create the XML file, use
01508         # >>> Bio.Entrez.esummary(db="nucleotide", id="28864546,28800981",
01509         #                         retmode="xml")
01510         handle = open('Entrez/esummary4.xml', "rb")
01511         record = Entrez.read(handle)
01512         handle.close()
01513         self.assertEqual(record[0]["Id"], "28864546")
01514         self.assertEqual(record[0]["Caption"], "AY207443")
01515         self.assertEqual(record[0]["Title"], "Homo sapiens alpha hemoglobin (HBZP) pseudogene 3' UTR/AluJo repeat breakpoint junction")
01516         self.assertEqual(record[0]["Extra"], "gi|28864546|gb|AY207443.1|[28864546]")
01517         self.assertEqual(record[0]["Gi"], 28864546)
01518         self.assertEqual(record[0]["CreateDate"], "2003/03/05")
01519         self.assertEqual(record[0]["UpdateDate"], "2003/03/05")
01520         self.assertEqual(record[0]["Flags"], 0)
01521         self.assertEqual(record[0]["TaxId"], 9606)
01522         self.assertEqual(record[0]["Length"], 491)
01523         self.assertEqual(record[0]["Status"], "live")
01524         self.assertEqual(record[0]["ReplacedBy"], "")
01525         self.assertEqual(record[0]["Comment"], "  ")
01526 
01527         self.assertEqual(record[1]["Id"], "28800981")
01528         self.assertEqual(record[1]["Caption"], "AY205604")
01529         self.assertEqual(record[1]["Title"], "Homo sapiens hemochromatosis (HFE) mRNA, partial cds")
01530         self.assertEqual(record[1]["Extra"], "gi|28800981|gb|AY205604.1|[28800981]")
01531         self.assertEqual(record[1]["Gi"], 28800981)
01532         self.assertEqual(record[1]["CreateDate"], "2003/03/03")
01533         self.assertEqual(record[1]["UpdateDate"], "2003/03/03")
01534         self.assertEqual(record[1]["Flags"], 0)
01535         self.assertEqual(record[1]["TaxId"], 9606)
01536         self.assertEqual(record[1]["Length"], 860)
01537         self.assertEqual(record[1]["Status"], "live")
01538         self.assertEqual(record[1]["ReplacedBy"], "")
01539         self.assertEqual(record[1]["Comment"], "  ")

Here is the call graph for this function:

Test parsing XML returned by ESummary from the Protein database

Definition at line 1464 of file test_Entrez.py.

01464 
01465     def test_protein(self):
01466         '''Test parsing XML returned by ESummary from the Protein database
01467         '''
01468         # In Protein display records for GIs 28800982 and 28628843 in xml retrieval mode
01469         # To create the XML file, use
01470         # >>> Bio.Entrez.esummary(db="protein", id="28800982,28628843", retmode="xml")
01471         handle = open('Entrez/esummary3.xml', "rb")
01472         record = Entrez.read(handle)
01473         handle.close()
01474         self.assertEqual(record[0]["Id"], "28800982")
01475         self.assertEqual(record[0]["Caption"], "AAO47091")
01476         self.assertEqual(record[0]["Title"], "hemochromatosis [Homo sapiens]")
01477         self.assertEqual(record[0]["Extra"], "gi|28800982|gb|AAO47091.1|[28800982]")
01478         self.assertEqual(record[0]["Gi"], 28800982)
01479         self.assertEqual(record[0]["CreateDate"], "2003/03/03")
01480         self.assertEqual(record[0]["UpdateDate"], "2003/03/03")
01481         self.assertEqual(record[0]["Flags"], 0)
01482         self.assertEqual(record[0]["TaxId"], 9606)
01483         self.assertEqual(record[0]["Length"], 268)
01484         self.assertEqual(record[0]["Status"], "live")
01485         self.assertEqual(record[0]["ReplacedBy"], "")
01486         self.assertEqual(record[0]["Comment"], "  ")
01487 
01488         self.assertEqual(record[1]["Id"], "28628843")
01489         self.assertEqual(record[1]["Caption"], "AAO49381")
01490         self.assertEqual(record[1]["Title"], "erythroid associated factor [Homo sapiens]")
01491         self.assertEqual(record[1]["Extra"], "gi|28628843|gb|AAO49381.1|AF485325_1[28628843]")
01492         self.assertEqual(record[1]["Gi"],  28628843)
01493         self.assertEqual(record[1]["CreateDate"], "2003/03/02")
01494         self.assertEqual(record[1]["UpdateDate"], "2003/03/02")
01495         self.assertEqual(record[1]["Flags"], 0)
01496         self.assertEqual(record[1]["TaxId"], 9606)
01497         self.assertEqual(record[1]["Length"], 102)
01498         self.assertEqual(record[1]["Status"], "live")
01499         self.assertEqual(record[1]["ReplacedBy"], "")
01500         self.assertEqual(record[1]["Comment"], "  ")

Here is the call graph for this function:

Test parsing XML returned by ESummary from PubMed

Definition at line 1309 of file test_Entrez.py.

01309 
01310     def test_pubmed(self):
01311         '''Test parsing XML returned by ESummary from PubMed
01312         '''
01313         # In PubMed display records for PMIDs 11850928 and 11482001 in
01314         # xml retrieval mode
01315         # To create the XML file, use
01316         # >>> Bio.Entrez.esummary(db="pubmed", id=["11850928","11482001"],
01317         #                         retmode="xml")
01318         handle = open('Entrez/esummary1.xml', "rb")
01319         record = Entrez.read(handle)
01320         handle.close()
01321         self.assertEqual(record[0]["Id"], "11850928")
01322         self.assertEqual(record[0]["PubDate"], "1965 Aug")
01323         self.assertEqual(record[0]["EPubDate"], "")
01324         self.assertEqual(record[0]["Source"], "Arch Dermatol")
01325         self.assertEqual(len(record[0]["AuthorList"]), 2)
01326         self.assertEqual(record[0]["AuthorList"][0], "LoPresti PJ")
01327         self.assertEqual(record[0]["AuthorList"][1], "Hambrick GW Jr")
01328         self.assertEqual(record[0]["LastAuthor"], "Hambrick GW Jr")
01329         self.assertEqual(record[0]["Title"], "Zirconium granuloma following treatment of rhus dermatitis.")
01330         self.assertEqual(record[0]["Volume"], "92")
01331         self.assertEqual(record[0]["Issue"], "2")
01332         self.assertEqual(record[0]["Pages"], "188-91")
01333         self.assertEqual(record[0]["LangList"], ["English"])
01334         self.assertEqual(record[0]["NlmUniqueID"], "0372433")
01335         self.assertEqual(record[0]["ISSN"], "0003-987X")
01336         self.assertEqual(record[0]["ESSN"], "1538-3652")
01337         self.assertEqual(len(record[0]["PubTypeList"]), 1)
01338         self.assertEqual(record[0]["PubTypeList"][0], "Journal Article")
01339         self.assertEqual(record[0]["RecordStatus"], "PubMed - indexed for MEDLINE")
01340         self.assertEqual(record[0]["PubStatus"], "ppublish")
01341         self.assertEqual(len(record[0]["ArticleIds"]), 2)
01342         self.assertEqual(record[0]["ArticleIds"]["pubmed"], ["11850928"])
01343         self.assertEqual(record[0]["ArticleIds"]["medline"], [])
01344         self.assertEqual(len(record[0]["History"]), 2)
01345         self.assertEqual(record[0]["History"]["pubmed"], ["1965/08/01 00:00"])
01346         self.assertEqual(record[0]["History"]["medline"], ["2002/03/09 10:01"])
01347         self.assertEqual(len(record[0]["References"]), 0)
01348         self.assertEqual(record[0]["HasAbstract"], 1)
01349         self.assertEqual(record[0]["PmcRefCount"], 0)
01350         self.assertEqual(record[0]["FullJournalName"], "Archives of dermatology")
01351         self.assertEqual(record[0]["ELocationID"], "")
01352         self.assertEqual(record[0]["SO"], "1965 Aug;92(2):188-91")
01353 
01354         self.assertEqual(record[1]["Id"], "11482001")
01355         self.assertEqual(record[1]["PubDate"], "2001 Jun")
01356         self.assertEqual(record[1]["EPubDate"], "")
01357         self.assertEqual(record[1]["Source"], "Adverse Drug React Toxicol Rev")
01358         self.assertEqual(len(record[1]["AuthorList"]), 3)
01359         self.assertEqual(record[1]["AuthorList"][0], "Mantle D")
01360         self.assertEqual(record[1]["AuthorList"][1], "Gok MA")
01361         self.assertEqual(record[1]["AuthorList"][2], "Lennard TW")
01362         self.assertEqual(record[1]["LastAuthor"], "Lennard TW")
01363         self.assertEqual(record[1]["Title"], "Adverse and beneficial effects of plant extracts on skin and skin disorders.")
01364         self.assertEqual(record[1]["Volume"], "20")
01365         self.assertEqual(record[1]["Issue"], "2")
01366         self.assertEqual(record[1]["Pages"], "89-103")
01367         self.assertEqual(len(record[1]["LangList"]), 1)
01368         self.assertEqual(record[1]["LangList"][0], "English")
01369         self.assertEqual(record[1]["NlmUniqueID"], "9109474")
01370         self.assertEqual(record[1]["ISSN"], "0964-198X")
01371         self.assertEqual(record[1]["ESSN"], "")
01372         self.assertEqual(len(record[1]["PubTypeList"]), 2)
01373         self.assertEqual(record[1]["PubTypeList"][0], "Journal Article")
01374         self.assertEqual(record[1]["PubTypeList"][1], "Review")
01375         self.assertEqual(record[1]["RecordStatus"], "PubMed - indexed for MEDLINE")
01376         self.assertEqual(record[1]["PubStatus"], "ppublish")
01377         self.assertEqual(len(record[1]["ArticleIds"]), 2)
01378         self.assertEqual(record[1]["ArticleIds"]["pubmed"], ["11482001"])
01379         self.assertEqual(record[1]["ArticleIds"]["medline"], [])
01380         self.assertEqual(len(record[1]["History"]), 2)
01381         self.assertEqual(record[1]["History"]["pubmed"], ["2001/08/03 10:00"])
01382         self.assertEqual(record[1]["History"]["medline"], ["2002/01/23 10:01"])
01383         self.assertEqual(len(record[1]["References"]), 0)
01384         self.assertEqual(record[1]["HasAbstract"], 1)
01385         self.assertEqual(record[1]["PmcRefCount"], 0)
01386         self.assertEqual(record[1]["FullJournalName"], "Adverse drug reactions and toxicological reviews")
01387         self.assertEqual(record[1]["ELocationID"], "")
01388         self.assertEqual(record[1]["SO"], "2001 Jun;20(2):89-103")

Here is the call graph for this function:

Test parsing XML returned by ESummary from the Structure database

Definition at line 1540 of file test_Entrez.py.

01540 
01541     def test_structure(self):
01542         '''Test parsing XML returned by ESummary from the Structure database
01543         '''
01544         # In Nucleotide display records for GIs 28864546 and 28800981
01545         # in xml retrieval mode
01546         # To create the XML file, use
01547         # >>> Bio.Entrez.esummary(db="structure", id=["19923","12120"],
01548         #                         retmode="xml")
01549         handle = open('Entrez/esummary5.xml', "rb")
01550         record = Entrez.read(handle)
01551         handle.close()
01552         self.assertEqual(record[0]["Id"], "19923")
01553         self.assertEqual(record[0]["PdbAcc"], "1L5J")
01554         self.assertEqual(record[0]["PdbDescr"], "Crystal Structure Of E. Coli Aconitase B")
01555         self.assertEqual(record[0]["EC"], "4.2.1.3")
01556         self.assertEqual(record[0]["Resolution"], "2.4")
01557         self.assertEqual(record[0]["ExpMethod"], "X-Ray Diffraction")
01558         self.assertEqual(record[0]["PdbClass"], "Lyase")
01559         self.assertEqual(record[0]["PdbReleaseDate"], "2007/8/27")
01560         self.assertEqual(record[0]["PdbDepositDate"], "2002/3/7")
01561         self.assertEqual(record[0]["DepositDate"], "2007/10/25")
01562         self.assertEqual(record[0]["ModifyDate"], "2007/10/25")
01563         self.assertEqual(record[0]["LigCode"], "F3S|TRA")
01564         self.assertEqual(record[0]["LigCount"], "2")
01565         self.assertEqual(record[0]["ModProteinResCount"], "0")
01566         self.assertEqual(record[0]["ModDNAResCount"], "0")
01567         self.assertEqual(record[0]["ModRNAResCount"], "0")
01568         self.assertEqual(record[0]["ProteinChainCount"], "2")
01569         self.assertEqual(record[0]["DNAChainCount"], "0")
01570         self.assertEqual(record[0]["RNAChainCount"], "0")
01571 
01572         self.assertEqual(record[1]["Id"], "12120")
01573         self.assertEqual(record[1]["PdbAcc"], "1B0K")
01574         self.assertEqual(record[1]["PdbDescr"], "S642a:fluorocitrate Complex Of Aconitase")
01575         self.assertEqual(record[1]["EC"], "4.2.1.3")
01576         self.assertEqual(record[1]["Resolution"], "2.5")
01577         self.assertEqual(record[1]["ExpMethod"], "X-Ray Diffraction")
01578         self.assertEqual(record[1]["PdbClass"], "Lyase")
01579         self.assertEqual(record[1]["PdbReleaseDate"], "2007/8/27")
01580         self.assertEqual(record[1]["PdbDepositDate"], "1998/11/11")
01581         self.assertEqual(record[1]["DepositDate"], "2007/10/07")
01582         self.assertEqual(record[1]["ModifyDate"], "2007/10/07")
01583         self.assertEqual(record[1]["LigCode"], "FLC|O|SF4")
01584         self.assertEqual(record[1]["LigCount"], "3")
01585         self.assertEqual(record[1]["ModProteinResCount"], "0")
01586         self.assertEqual(record[1]["ModDNAResCount"], "0")
01587         self.assertEqual(record[1]["ModRNAResCount"], "0")
01588         self.assertEqual(record[1]["ProteinChainCount"], "1")
01589         self.assertEqual(record[1]["DNAChainCount"], "0")
01590         self.assertEqual(record[1]["RNAChainCount"], "0")

Here is the call graph for this function:

Test parsing XML returned by ESummary from the Taxonomy database

Definition at line 1591 of file test_Entrez.py.

01591 
01592     def test_taxonomy(self):
01593         '''Test parsing XML returned by ESummary from the Taxonomy database
01594         '''
01595         # In Taxonomy display records for TAXIDs 9913 and 30521 in
01596         # xml retrieval mode 
01597         # To create the XML file, use
01598         # >>> Bio.Entrez.esummary(db="taxonomy", id=["9913","30521"],
01599         #                         retmode="xml")
01600         handle = open('Entrez/esummary6.xml', "rb")
01601         record = Entrez.read(handle)
01602         handle.close()
01603         self.assertEqual(record[0]["Id"], "9913")
01604         self.assertEqual(record[0]["Rank"], "species")
01605         self.assertEqual(record[0]["Division"], "even-toed ungulates")
01606         self.assertEqual(record[0]["ScientificName"], "Bos taurus")
01607         self.assertEqual(record[0]["CommonName"], "cattle")
01608         self.assertEqual(record[0]["TaxId"], 9913)
01609         self.assertEqual(record[0]["NucNumber"], 2264214)
01610         self.assertEqual(record[0]["ProtNumber"], 55850)
01611         self.assertEqual(record[0]["StructNumber"], 1517)
01612         self.assertEqual(record[0]["GenNumber"], 31)
01613         self.assertEqual(record[0]["GeneNumber"], 29651)
01614         self.assertEqual(record[0]["Genus"], "")
01615         self.assertEqual(record[0]["Species"], "")
01616         self.assertEqual(record[0]["Subsp"], "")
01617 
01618         self.assertEqual(record[1]["Id"], "30521")
01619         self.assertEqual(record[1]["Rank"], "species")
01620         self.assertEqual(record[1]["Division"], "even-toed ungulates")
01621         self.assertEqual(record[1]["ScientificName"], "Bos grunniens")
01622         self.assertEqual(record[1]["CommonName"], "domestic yak")
01623         self.assertEqual(record[1]["TaxId"], 30521)
01624         self.assertEqual(record[1]["NucNumber"], 560)
01625         self.assertEqual(record[1]["ProtNumber"], 254)
01626         self.assertEqual(record[1]["StructNumber"], 0)
01627         self.assertEqual(record[1]["GenNumber"], 1)
01628         self.assertEqual(record[1]["GeneNumber"], 13)
01629         self.assertEqual(record[1]["Genus"], "")
01630         self.assertEqual(record[1]["Species"], "")
01631         self.assertEqual(record[1]["Subsp"], "")

Here is the call graph for this function:

Test parsing XML returned by ESummary from the UniSTS database

Definition at line 1632 of file test_Entrez.py.

01632 
01633     def test_unists(self):
01634         '''Test parsing XML returned by ESummary from the UniSTS database
01635         '''
01636         # In UniSTS display records for IDs 254085 and 254086 in xml
01637         # retrieval mode 
01638         # To create the XML file, use
01639         # >>> Bio.Entrez.esummary(db="unists", id=["254085","254086"],
01640         #                         retmode="xml")
01641         handle = open('Entrez/esummary7.xml', "rb")
01642         record = Entrez.read(handle)
01643         handle.close()
01644         self.assertEqual(record[0]["Id"], "254085")
01645         self.assertEqual(record[0]["Marker_Name"], "SE234324")
01646         self.assertEqual(len(record[0]["Map_Gene_Summary_List"]), 1)
01647         self.assertEqual(record[0]["Map_Gene_Summary_List"][0]["Org"], "Sus scrofa")
01648         self.assertEqual(record[0]["Map_Gene_Summary_List"][0]["Chr"], " chromosome 7")
01649         self.assertEqual(record[0]["Map_Gene_Summary_List"][0]["Locus"], "")
01650         self.assertEqual(record[0]["EPCR_Summary"], "Found by e-PCR in sequences from Sus scrofa.")
01651         self.assertEqual(record[0]["LocusId"], "")
01652 
01653         self.assertEqual(record[1]["Id"], "254086")
01654         self.assertEqual(record[1]["Marker_Name"], "SE259162")
01655         self.assertEqual(len(record[1]["Map_Gene_Summary_List"]), 1)
01656         self.assertEqual(record[1]["Map_Gene_Summary_List"][0]["Org"], "Sus scrofa")
01657         self.assertEqual(record[1]["Map_Gene_Summary_List"][0]["Chr"], " chromosome 12")
01658         self.assertEqual(record[1]["Map_Gene_Summary_List"][0]["Locus"], "")
01659         self.assertEqual(record[1]["EPCR_Summary"], "Found by e-PCR in sequences from Sus scrofa.")
01660         self.assertEqual(record[1]["LocusId"], "")

Here is the call graph for this function:

Test parsing XML returned by ESummary with incorrect arguments

Definition at line 1661 of file test_Entrez.py.

01661 
01662     def test_wrong(self):
01663         '''Test parsing XML returned by ESummary with incorrect arguments
01664         '''
01665         # To create the XML file, use
01666         # >>> Bio.Entrez.esummary()
01667         handle = open('Entrez/esummary8.xml', "rb")
01668         self.assertRaises(RuntimeError, Entrez.read, handle)
01669         handle.close()
01670 

Here is the call graph for this function:


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