Back to index

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

List of all members.

Public Member Functions

def test_pubmed1
def test_nucleotide
def test_pubmed2
def test_medline
def test_pubmed3
def test_pubmed4
def test_pubmed5
def test_pubmed6
def test_cancerchromosomes

Detailed Description

Tests for parsing XML output returned by ELink

Definition at line 1671 of file test_Entrez.py.


Member Function Documentation

Test parsing cancerchromosomes links returned by ELink

Definition at line 3426 of file test_Entrez.py.

03426 
03427     def test_cancerchromosomes(self):
03428         '''Test parsing cancerchromosomes links returned by ELink
03429         '''
03430         # Retrieve neighbors for Cancer Chromosomes ID 2662 to the link
03431         # subset related by cytogenetics
03432         # To create the XML file, use
03433         # >>> Bio.Entrez.elink(dbfrom="cancerchromosomes",
03434         #                       db="cancerchromosomes", id="2662",
03435         #                       cmd="neighbor",
03436         #                       linkname="cancerchromosomes_cancerchromosomes_cyto")
03437         handle = open('Entrez/elink9.xml', "rb")
03438         record = Entrez.read(handle)
03439         handle.close()
03440         self.assertEqual(record[0]["DbFrom"], "cancerchromosomes")
03441         self.assertEqual(record[0]["IdList"], ["2662"])
03442 

Here is the call graph for this function:

Test parsing medline indexed articles returned by ELink

Definition at line 2704 of file test_Entrez.py.

02704 
02705     def test_medline(self):
02706         '''Test parsing medline indexed articles returned by ELink
02707         '''
02708         # Retrieve MEDLINE indexed only related articles for PMID 12242737
02709         # To create the XML file, use
02710         # >>> Bio.Entrez.elink(dbfrom="pubmed", id="12242737", db="pubmed",
02711         #                      term="medline[sb]")
02712         handle = open('Entrez/elink4.xml', "rb")
02713         record = Entrez.read(handle)
02714         handle.close()
02715         self.assertEqual(len(record), 1)
02716         self.assertEqual(record[0]["DbFrom"], "pubmed")
02717         self.assertEqual(record[0]["IdList"], ["12242737"])
02718         self.assertEqual(record[0]["LinkSetDb"][0]["DbTo"], "pubmed")
02719         self.assertEqual(record[0]["LinkSetDb"][0]["LinkName"], "pubmed_pubmed")
02720         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][0]["Id"], "12242737")
02721         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][0]["Score"], "2147483647")
02722         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][1]["Id"], "11218011")
02723         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][1]["Score"], "50825961")
02724         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][2]["Id"], "11329656")
02725         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][2]["Score"], "49822043")
02726         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][3]["Id"], "9757294")
02727         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][3]["Score"], "42645380")
02728         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][4]["Id"], "9456947")
02729         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][4]["Score"], "39871666")
02730         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][5]["Id"], "17193860")
02731         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][5]["Score"], "39717388")
02732         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][6]["Id"], "11274884")
02733         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][6]["Score"], "39233276")
02734         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][7]["Id"], "12878072")
02735         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][7]["Score"], "37748327")
02736         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][8]["Id"], "11125632")
02737         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][8]["Score"], "36227857")
02738         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][9]["Id"], "12822521")
02739         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][9]["Score"], "36170366")
02740         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][10]["Id"], "16999328")
02741         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][10]["Score"], "36107139")
02742         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][11]["Id"], "17875142")
02743         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][11]["Score"], "35736802")
02744         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][12]["Id"], "9510579")
02745         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][12]["Score"], "35206779")
02746         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][13]["Id"], "17354190")
02747         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][13]["Score"], "34792954")
02748         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][14]["Id"], "11702119")
02749         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][14]["Score"], "34618984")
02750         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][15]["Id"], "10024396")
02751         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][15]["Score"], "33877753")
02752         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][16]["Id"], "14650118")
02753         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][16]["Score"], "33746160")
02754         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][17]["Id"], "17243036")
02755         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][17]["Score"], "33198930")
02756         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][18]["Id"], "16580806")
02757         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][18]["Score"], "33117197")
02758         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][19]["Id"], "15278705")
02759         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][19]["Score"], "33002826")
02760         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][20]["Id"], "15236131")
02761         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][20]["Score"], "32808406")
02762         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][21]["Id"], "11368937")
02763         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][21]["Score"], "32277701")
02764         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][22]["Id"], "10688065")
02765         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][22]["Score"], "32052850")
02766         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][23]["Id"], "15635471")
02767         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][23]["Score"], "31938251")
02768         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][24]["Id"], "16357381")
02769         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][24]["Score"], "31780147")
02770         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][25]["Id"], "8153333")
02771         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][25]["Score"], "31542202")
02772         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][26]["Id"], "16284132")
02773         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][26]["Score"], "31290577")
02774         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][27]["Id"], "11329162")
02775         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][27]["Score"], "31163088")
02776         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][28]["Id"], "11973040")
02777         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][28]["Score"], "31156707")
02778         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][29]["Id"], "15143223")
02779         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][29]["Score"], "31025329")
02780         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][30]["Id"], "17040637")
02781         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][30]["Score"], "30990506")
02782         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][31]["Id"], "11016058")
02783         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][31]["Score"], "30966482")
02784         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][32]["Id"], "9317094")
02785         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][32]["Score"], "30935529")
02786         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][33]["Id"], "16133609")
02787         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][33]["Score"], "30580027")
02788         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][34]["Id"], "17325998")
02789         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][34]["Score"], "30130533")
02790         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][35]["Id"], "15505294")
02791         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][35]["Score"], "29430378")
02792         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][36]["Id"], "17268692")
02793         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][36]["Score"], "29166153")
02794         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][37]["Id"], "11329655")
02795         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][37]["Score"], "29112282")
02796         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][38]["Id"], "11775722")
02797         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][38]["Score"], "28940754")
02798         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][39]["Id"], "11907356")
02799         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][39]["Score"], "28860163")
02800         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][40]["Id"], "10222515")
02801         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][40]["Score"], "28807143")
02802         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][41]["Id"], "17174054")
02803         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][41]["Score"], "28790302")
02804         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][42]["Id"], "9314960")
02805         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][42]["Score"], "28750160")
02806         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][43]["Id"], "14661661")
02807         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][43]["Score"], "28361423")
02808         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][44]["Id"], "17879696")
02809         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][44]["Score"], "28120568")
02810         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][45]["Id"], "4818442")
02811         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][45]["Score"], "28058957")
02812         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][46]["Id"], "15141648")
02813         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][46]["Score"], "28011681")
02814         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][47]["Id"], "8855688")
02815         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][47]["Score"], "27711822")
02816         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][48]["Id"], "17875143")
02817         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][48]["Score"], "27711025")
02818         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][49]["Id"], "1481295")
02819         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][49]["Score"], "27707751")
02820         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][50]["Id"], "8599783")
02821         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][50]["Score"], "27683273")
02822         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][51]["Id"], "10499696")
02823         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][51]["Score"], "27623848")
02824         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][52]["Id"], "12733684")
02825         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][52]["Score"], "27527242")
02826         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][53]["Id"], "18021675")
02827         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][53]["Score"], "27495074")
02828         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][54]["Id"], "12226761")
02829         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][54]["Score"], "27366064")
02830         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][55]["Id"], "4808999")
02831         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][55]["Score"], "27304472")
02832         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][56]["Id"], "16988291")
02833         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][56]["Score"], "27295295")
02834         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][57]["Id"], "10575758")
02835         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][57]["Score"], "27243181")
02836         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][58]["Id"], "8903064")
02837         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][58]["Score"], "27206664")
02838         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][59]["Id"], "10811354")
02839         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][59]["Score"], "27088219")
02840         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][60]["Id"], "16096604")
02841         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][60]["Score"], "26862979")
02842         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][61]["Id"], "15788584")
02843         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][61]["Score"], "26759584")
02844         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][62]["Id"], "17376366")
02845         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][62]["Score"], "26743241")
02846         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][63]["Id"], "16566645")
02847         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][63]["Score"], "26725076")
02848         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][64]["Id"], "17259035")
02849         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][64]["Score"], "26595433")
02850         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][65]["Id"], "9314959")
02851         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][65]["Score"], "26445900")
02852         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][66]["Id"], "11895298")
02853         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][66]["Score"], "26256774")
02854         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][67]["Id"], "11740602")
02855         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][67]["Score"], "26158189")
02856         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][68]["Id"], "15022983")
02857         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][68]["Score"], "25889186")
02858         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][69]["Id"], "15300544")
02859         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][69]["Score"], "25837458")
02860         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][70]["Id"], "12719915")
02861         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][70]["Score"], "25831232")
02862         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][71]["Id"], "14661306")
02863         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][71]["Score"], "25788023")
02864         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][72]["Id"], "16362812")
02865         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][72]["Score"], "25565076")
02866         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][73]["Id"], "17320773")
02867         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][73]["Score"], "25504305")
02868         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][74]["Id"], "11762248")
02869         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][74]["Score"], "25504002")
02870         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][75]["Id"], "10665303")
02871         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][75]["Score"], "25384388")
02872         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][76]["Id"], "17453494")
02873         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][76]["Score"], "25226372")
02874         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][77]["Id"], "9575723")
02875         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][77]["Score"], "25174136")
02876         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][78]["Id"], "12744498")
02877         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][78]["Score"], "24971179")
02878         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][79]["Id"], "12352163")
02879         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][79]["Score"], "24915990")
02880         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][80]["Id"], "8290724")
02881         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][80]["Score"], "24909462")
02882         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][81]["Id"], "11973504")
02883         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][81]["Score"], "24878058")
02884         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][82]["Id"], "14661668")
02885         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][82]["Score"], "24779779")
02886         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][83]["Id"], "16552382")
02887         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][83]["Score"], "24760919")
02888         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][84]["Id"], "17709829")
02889         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][84]["Score"], "24743292")
02890         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][85]["Id"], "14528718")
02891         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][85]["Score"], "24686212")
02892         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][86]["Id"], "15008163")
02893         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][86]["Score"], "24612994")
02894         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][87]["Id"], "10051883")
02895         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][87]["Score"], "24492331")
02896         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][88]["Id"], "11027076")
02897         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][88]["Score"], "24410525")
02898         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][89]["Id"], "17543650")
02899         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][89]["Score"], "24371825")
02900         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][90]["Id"], "17658095")
02901         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][90]["Score"], "24331965")
02902         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][91]["Id"], "9193407")
02903         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][91]["Score"], "24240252")
02904         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][92]["Id"], "10578418")
02905         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][92]["Score"], "24091226")
02906         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][93]["Id"], "12592155")
02907         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][93]["Score"], "24001341")
02908         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][94]["Id"], "17157468")
02909         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][94]["Score"], "23984321")
02910         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][95]["Id"], "15094630")
02911         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][95]["Score"], "23912874")
02912         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][96]["Id"], "8794574")
02913         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][96]["Score"], "23900764")
02914         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][97]["Id"], "9125660")
02915         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][97]["Score"], "23884352")
02916         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][98]["Id"], "8819381")
02917         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][98]["Score"], "23839719")
02918         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][99]["Id"], "14661666")
02919         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][99]["Score"], "23748510")
02920         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][100]["Id"], "9658901")
02921         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][100]["Score"], "23667126")
02922         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][101]["Id"], "12744499")
02923         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][101]["Score"], "23647189")
02924         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][102]["Id"], "12164574")
02925         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][102]["Score"], "23623853")
02926         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][103]["Id"], "15136027")
02927         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][103]["Score"], "23572558")
02928         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][104]["Id"], "14872380")
02929         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][104]["Score"], "23460906")
02930         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][105]["Id"], "3905087")
02931         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][105]["Score"], "23305022")
02932         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][106]["Id"], "15642291")
02933         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][106]["Score"], "23234831")
02934         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][107]["Id"], "16928974")
02935         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][107]["Score"], "23223298")
02936         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][108]["Id"], "6072516")
02937         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][108]["Score"], "23042548")
02938         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][109]["Id"], "12949462")
02939         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][109]["Score"], "23001441")
02940         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][110]["Id"], "10761553")
02941         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][110]["Score"], "22995991")
02942         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][111]["Id"], "14661663")
02943         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][111]["Score"], "22986720")
02944         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][112]["Id"], "16338316")
02945         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][112]["Score"], "22933288")
02946         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][113]["Id"], "17464254")
02947         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][113]["Score"], "22912253")
02948         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][114]["Id"], "15529836")
02949         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][114]["Score"], "22892154")
02950         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][115]["Id"], "12361530")
02951         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][115]["Score"], "22871698")
02952         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][116]["Id"], "12876813")
02953         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][116]["Score"], "22822515")
02954         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][117]["Id"], "10749221")
02955         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][117]["Score"], "22794373")
02956         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][118]["Id"], "6482054")
02957         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][118]["Score"], "22791927")
02958         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][119]["Id"], "9016217")
02959         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][119]["Score"], "22738432")
02960         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][120]["Id"], "14702442")
02961         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][120]["Score"], "22722123")
02962         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][121]["Id"], "15279747")
02963         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][121]["Score"], "22698787")
02964         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][122]["Id"], "7892443")
02965         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][122]["Score"], "22642038")
02966         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][123]["Id"], "616459")
02967         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][123]["Score"], "22591277")
02968         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][124]["Id"], "8886718")
02969         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][124]["Score"], "22542938")
02970         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][125]["Id"], "17245521")
02971         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][125]["Score"], "22538649")
02972         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][126]["Id"], "1535863")
02973         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][126]["Score"], "22468774")
02974         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][127]["Id"], "15537403")
02975         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][127]["Score"], "22458002")
02976         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][128]["Id"], "16040910")
02977         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][128]["Score"], "22452119")
02978         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][129]["Id"], "16929028")
02979         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][129]["Score"], "22433988")
02980         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][130]["Id"], "16697589")
02981         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][130]["Score"], "22366606")
02982         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][131]["Id"], "531835")
02983         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][131]["Score"], "22366454")
02984         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][132]["Id"], "2308313")
02985         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][132]["Score"], "22330898")
02986         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][133]["Id"], "12522920")
02987         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][133]["Score"], "22178764")
02988         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][134]["Id"], "10222521")
02989         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][134]["Score"], "22135023")
02990         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][135]["Id"], "10499697")
02991         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][135]["Score"], "22130302")
02992         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][136]["Id"], "8903058")
02993         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][136]["Score"], "22113132")
02994         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][137]["Id"], "17441569")
02995         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][137]["Score"], "22085858")
02996         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][138]["Id"], "15284932")
02997         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][138]["Score"], "22075791")
02998         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][139]["Id"], "15466771")
02999         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][139]["Score"], "22075418")
03000         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][140]["Id"], "17145267")
03001         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][140]["Score"], "22033864")
03002         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][141]["Id"], "11329662")
03003         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][141]["Score"], "22012948")
03004         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][142]["Id"], "10222514")
03005         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][142]["Score"], "22009777")
03006         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][143]["Id"], "17383530")
03007         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][143]["Score"], "22003600")
03008         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][144]["Id"], "12455800")
03009         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][144]["Score"], "21992674")
03010         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][145]["Id"], "15845051")
03011         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][145]["Score"], "21946257")
03012         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][146]["Id"], "11443295")
03013         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][146]["Score"], "21908841")
03014         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][147]["Id"], "15162233")
03015         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][147]["Score"], "21903624")
03016         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][148]["Id"], "16133610")
03017         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][148]["Score"], "21872203")
03018         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][149]["Id"], "12845461")
03019         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][149]["Score"], "21864314")
03020         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][150]["Id"], "16947073")
03021         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][150]["Score"], "21832153")
03022         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][151]["Id"], "7415301")
03023         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][151]["Score"], "21822396")
03024         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][152]["Id"], "16416239")
03025         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][152]["Score"], "21820165")
03026         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][153]["Id"], "4848922")
03027         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][153]["Score"], "21786194")
03028         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][154]["Id"], "12720164")
03029         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][154]["Score"], "21785319")
03030         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][155]["Id"], "17093987")
03031         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][155]["Score"], "21750370")
03032         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][156]["Id"], "16769006")
03033         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][156]["Score"], "21735873")
03034         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][157]["Id"], "17954835")
03035         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][157]["Score"], "21733933")
03036         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][158]["Id"], "15236134")
03037         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][158]["Score"], "21640099")
03038         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][159]["Id"], "12524603")
03039         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][159]["Score"], "21636724")
03040         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][160]["Id"], "16749985")
03041         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][160]["Score"], "21628926")
03042         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][161]["Id"], "3213296")
03043         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][161]["Score"], "21490232")
03044         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][162]["Id"], "11409026")
03045         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][162]["Score"], "21061296")
03046         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][163]["Id"], "9725288")
03047         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][163]["Score"], "21053585")
03048         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][164]["Id"], "6217136")
03049         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][164]["Score"], "21042914")
03050         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][165]["Id"], "663071")
03051         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][165]["Score"], "20926141")
03052         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][166]["Id"], "10341802")
03053         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][166]["Score"], "20797282")
03054         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][167]["Id"], "6473764")
03055         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][167]["Score"], "20757680")
03056         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][168]["Id"], "2584497")
03057         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][168]["Score"], "20521350")
03058         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][169]["Id"], "8338105")
03059         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][169]["Score"], "20501334")
03060         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][170]["Id"], "18053822")
03061         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][170]["Score"], "20275078")
03062         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][171]["Id"], "4058411")
03063         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][171]["Score"], "20161667")
03064         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][172]["Id"], "11669077")
03065         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][172]["Score"], "19993282")
03066         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][173]["Id"], "11781922")
03067         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][173]["Score"], "19969425")
03068         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][174]["Id"], "9793138")
03069         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][174]["Score"], "19952972")
03070         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][175]["Id"], "9391495")
03071         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][175]["Score"], "19815538")
03072         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][176]["Id"], "10803203")
03073         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][176]["Score"], "19495693")
03074         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][177]["Id"], "7326186")
03075         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][177]["Score"], "19273989")
03076         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][178]["Id"], "11868066")
03077         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][178]["Score"], "19220137")
03078         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][179]["Id"], "10904988")
03079         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][179]["Score"], "19203510")
03080         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][180]["Id"], "3288780")
03081         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][180]["Score"], "18958114")
03082         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][181]["Id"], "2047316")
03083         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][181]["Score"], "18907473")
03084         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][182]["Id"], "12237004")
03085         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][182]["Score"], "18751474")
03086         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][183]["Id"], "5627987")
03087         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][183]["Score"], "18741903")
03088         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][184]["Id"], "9269670")
03089         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][184]["Score"], "18666426")
03090         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][185]["Id"], "8903059")
03091         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][185]["Score"], "18653874")
03092         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][186]["Id"], "5594242")
03093         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][186]["Score"], "18548780")
03094         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][187]["Id"], "7068417")
03095         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][187]["Score"], "18390022")
03096         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][188]["Id"], "7330196")
03097         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][188]["Score"], "18371587")
03098         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][189]["Id"], "7408592")
03099         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][189]["Score"], "18275541")
03100         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][190]["Id"], "8835983")
03101         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][190]["Score"], "18176923")
03102         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][191]["Id"], "6940010")
03103         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][191]["Score"], "18011066")
03104         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][192]["Id"], "10499712")
03105         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][192]["Score"], "17943586")
03106         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][193]["Id"], "4539876")
03107         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][193]["Score"], "17915154")
03108         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][194]["Id"], "1943587")
03109         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][194]["Score"], "17752606")
03110         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][195]["Id"], "9847909")
03111         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][195]["Score"], "17568386")
03112         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][196]["Id"], "11578071")
03113         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][196]["Score"], "17561413")
03114         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][197]["Id"], "11789473")
03115         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][197]["Score"], "17435433")
03116         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][198]["Id"], "9885599")
03117         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][198]["Score"], "17383598")
03118         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][199]["Id"], "7423836")
03119         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][199]["Score"], "17196872")
03120         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][200]["Id"], "10688063")
03121         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][200]["Score"], "16453112")
03122         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][201]["Id"], "11695100")
03123         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][201]["Score"], "16352760")
03124         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][202]["Id"], "11329658")
03125         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][202]["Score"], "16089885")
03126         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][203]["Id"], "11939665")
03127         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][203]["Score"], "15947974")
03128         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][204]["Id"], "5512349")
03129         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][204]["Score"], "15647685")
03130         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][205]["Id"], "2222794")
03131         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][205]["Score"], "14981157")
03132         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][206]["Id"], "5998281")
03133         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][206]["Score"], "14226588")
03134         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][207]["Id"], "10475937")
03135         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][207]["Score"], "13934390")
03136         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][208]["Id"], "5046513")
03137         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][208]["Score"], "12769605")
03138         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][209]["Id"], "1539132")
03139         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][209]["Score"], "12395064")
03140         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][210]["Id"], "4414214")
03141         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][210]["Score"], "10113539")

Here is the call graph for this function:

Test parsing Nucleotide to Protein links returned by ELink

Definition at line 1978 of file test_Entrez.py.

01978 
01979     def test_nucleotide(self):
01980         '''Test parsing Nucleotide to Protein links returned by ELink
01981         '''
01982         # Retrieve IDs from Nucleotide for GI  48819, 7140345 to Protein
01983         # To create the XML file, use
01984         # >>> Bio.Entrez.elink(dbfrom="nucleotide", db="protein",
01985         #                      id="48819,7140345")
01986         handle = open('Entrez/elink2.xml', "rb")
01987         record = Entrez.read(handle)
01988         handle.close()
01989         self.assertEqual(record[0]["DbFrom"], "nucleotide")
01990         self.assertEqual(record[0]["IdList"], ["48819", "7140345"])

Here is the call graph for this function:

Test parsing pubmed links returned by ELink (first test)

Definition at line 1674 of file test_Entrez.py.

01674 
01675     def test_pubmed1(self):
01676         '''Test parsing pubmed links returned by ELink (first test)
01677         '''
01678         # Retrieve IDs from PubMed for PMID 9298984 to the PubMed database
01679         # To create the XML file, use
01680         # >>> Bio.Entrez.elink(dbfrom="pubmed", id="9298984", cmd="neighbor")
01681         handle = open('Entrez/elink1.xml', "rb")
01682         record = Entrez.read(handle)
01683         handle.close()
01684         self.assertEqual(len(record), 1)
01685         self.assertEqual(record[0]["DbFrom"], "pubmed")
01686         self.assertEqual(record[0]["IdList"], ["9298984"])
01687         self.assertEqual(record[0]["LinkSetDb"][0]["DbTo"], "pubmed")
01688         self.assertEqual(record[0]["LinkSetDb"][0]["LinkName"], "pubmed_pubmed")
01689         self.assertEqual(len(record[0]["LinkSetDb"][0]["Link"]), 144)
01690         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][0]["Id"], "9298984")
01691         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][0]["Score"], "2147483647")
01692         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][1]["Id"], "8794856")
01693         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][1]["Score"], "65259341")
01694         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][2]["Id"], "9700164")
01695         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][2]["Score"], "60347327")
01696         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][3]["Id"], "7914521")
01697         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][3]["Score"], "54343405")
01698         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][4]["Id"], "1339459")
01699         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][4]["Score"], "53014422")
01700         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][5]["Id"], "9914369")
01701         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][5]["Score"], "52741538")
01702         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][6]["Id"], "11590237")
01703         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][6]["Score"], "52493903")
01704         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][7]["Id"], "12686595")
01705         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][7]["Score"], "48734007")
01706         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][8]["Id"], "9074495")
01707         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][8]["Score"], "48220447")
01708         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][9]["Id"], "11146659")
01709         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][9]["Score"], "46604626")
01710         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][10]["Id"], "10893249")
01711         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][10]["Score"], "46254167")
01712         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][11]["Id"], "8978614")
01713         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][11]["Score"], "46166362")
01714         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][12]["Id"], "15371539")
01715         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][12]["Score"], "45060488")
01716         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][13]["Id"], "10806105")
01717         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][13]["Score"], "44825774")
01718         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][14]["Id"], "10402457")
01719         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][14]["Score"], "44338522")
01720         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][15]["Id"], "10545493")
01721         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][15]["Score"], "43860609")
01722         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][16]["Id"], "10523511")
01723         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][16]["Score"], "43268800")
01724         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][17]["Id"], "12515822")
01725         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][17]["Score"], "43215343")
01726         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][18]["Id"], "15915585")
01727         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][18]["Score"], "43029760")
01728         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][19]["Id"], "11483958")
01729         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][19]["Score"], "42348877")
01730         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][20]["Id"], "11685532")
01731         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][20]["Score"], "42262104")
01732         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][21]["Id"], "9869638")
01733         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][21]["Score"], "41143593")
01734         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][22]["Id"], "12080088")
01735         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][22]["Score"], "40849490")
01736         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][23]["Id"], "12034769")
01737         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][23]["Score"], "40841328")
01738         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][24]["Id"], "9852156")
01739         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][24]["Score"], "40793501")
01740         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][25]["Id"], "9735366")
01741         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][25]["Score"], "40661605")
01742         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][26]["Id"], "10749938")
01743         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][26]["Score"], "40486739")
01744         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][27]["Id"], "9490715")
01745         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][27]["Score"], "40311339")
01746         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][28]["Id"], "9425896")
01747         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][28]["Score"], "40056298")
01748         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][29]["Id"], "11266459")
01749         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][29]["Score"], "39883140")
01750         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][30]["Id"], "14522947")
01751         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][30]["Score"], "39683976")
01752         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][31]["Id"], "15616189")
01753         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][31]["Score"], "39518630")
01754         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][32]["Id"], "16732327")
01755         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][32]["Score"], "39425668")
01756         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][33]["Id"], "11179694")
01757         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][33]["Score"], "39183565")
01758         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][34]["Id"], "10898791")
01759         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][34]["Score"], "39159761")
01760         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][35]["Id"], "11146661")
01761         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][35]["Score"], "39116609")
01762         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][36]["Id"], "11914278")
01763         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][36]["Score"], "39028004")
01764         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][37]["Id"], "10985388")
01765         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][37]["Score"], "39002572")
01766         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][38]["Id"], "16839185")
01767         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][38]["Score"], "38916726")
01768         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][39]["Id"], "7585942")
01769         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][39]["Score"], "38747288")
01770         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][40]["Id"], "2022189")
01771         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][40]["Score"], "38717145")
01772         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][41]["Id"], "7690762")
01773         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][41]["Score"], "38647275")
01774         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][42]["Id"], "7904902")
01775         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][42]["Score"], "38557343")
01776         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][43]["Id"], "9378750")
01777         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][43]["Score"], "38484849")
01778         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][44]["Id"], "12388768")
01779         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][44]["Score"], "38454422")
01780         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][45]["Id"], "11352945")
01781         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][45]["Score"], "38449836")
01782         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][46]["Id"], "11267866")
01783         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][46]["Score"], "38419058")
01784         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][47]["Id"], "17222555")
01785         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][47]["Score"], "38368546")
01786         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][48]["Id"], "11252055")
01787         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][48]["Score"], "38257516")
01788         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][49]["Id"], "16585270")
01789         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][49]["Score"], "37800856")
01790         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][50]["Id"], "9606208")
01791         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][50]["Score"], "37669054")
01792         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][51]["Id"], "17182852")
01793         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][51]["Score"], "37621285")
01794         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][52]["Id"], "9933569")
01795         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][52]["Score"], "37398470")
01796         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][53]["Id"], "15268859")
01797         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][53]["Score"], "37340582")
01798         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][54]["Id"], "12235289")
01799         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][54]["Score"], "37247450")
01800         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][55]["Id"], "16741559")
01801         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][55]["Score"], "37198716")
01802         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][56]["Id"], "11266451")
01803         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][56]["Score"], "37142542")
01804         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][57]["Id"], "15075237")
01805         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][57]["Score"], "36897578")
01806         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][58]["Id"], "15485811")
01807         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][58]["Score"], "36804297")
01808         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][59]["Id"], "14699129")
01809         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][59]["Score"], "36782062")
01810         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][60]["Id"], "16510521")
01811         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][60]["Score"], "36724370")
01812         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][61]["Id"], "15824131")
01813         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][61]["Score"], "36695341")
01814         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][62]["Id"], "15371340")
01815         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][62]["Score"], "36685694")
01816         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][63]["Id"], "9878245")
01817         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][63]["Score"], "36684230")
01818         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][64]["Id"], "10398680")
01819         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][64]["Score"], "36573411")
01820         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][65]["Id"], "16516834")
01821         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][65]["Score"], "36525654")
01822         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][66]["Id"], "11715021")
01823         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][66]["Score"], "36518129")
01824         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][67]["Id"], "14622138")
01825         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][67]["Score"], "36496009")
01826         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][68]["Id"], "11092768")
01827         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][68]["Score"], "36457186")
01828         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][69]["Id"], "12514103")
01829         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][69]["Score"], "36385909")
01830         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][70]["Id"], "17525528")
01831         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][70]["Score"], "36316439")
01832         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][71]["Id"], "11402064")
01833         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][71]["Score"], "36172957")
01834         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][72]["Id"], "9258677")
01835         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][72]["Score"], "35989143")
01836         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][73]["Id"], "14499625")
01837         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][73]["Score"], "35978627")
01838         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][74]["Id"], "10428958")
01839         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][74]["Score"], "35924800")
01840         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][75]["Id"], "14972679")
01841         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][75]["Score"], "35915578")
01842         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][76]["Id"], "9396743")
01843         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][76]["Score"], "35883749")
01844         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][77]["Id"], "16219694")
01845         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][77]["Score"], "35870689")
01846         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][78]["Id"], "11369198")
01847         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][78]["Score"], "35838048")
01848         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][79]["Id"], "17333235")
01849         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][79]["Score"], "35815282")
01850         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][80]["Id"], "11102811")
01851         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][80]["Score"], "35783566")
01852         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][81]["Id"], "10207147")
01853         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][81]["Score"], "35594009")
01854         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][82]["Id"], "10477755")
01855         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][82]["Score"], "35589601")
01856         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][83]["Id"], "10747094")
01857         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][83]["Score"], "35548072")
01858         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][84]["Id"], "15215209")
01859         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][84]["Score"], "35526869")
01860         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][85]["Id"], "11157774")
01861         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][85]["Score"], "35510607")
01862         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][86]["Id"], "10669599")
01863         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][86]["Score"], "35462246")
01864         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][87]["Id"], "17448445")
01865         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][87]["Score"], "35398470")
01866         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][88]["Id"], "17878237")
01867         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][88]["Score"], "35231311")
01868         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][89]["Id"], "10411903")
01869         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][89]["Score"], "35202708")
01870         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][90]["Id"], "12773390")
01871         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][90]["Score"], "35171743")
01872         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][91]["Id"], "12498686")
01873         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][91]["Score"], "35131906")
01874         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][92]["Id"], "9009204")
01875         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][92]["Score"], "34993776")
01876         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][93]["Id"], "17576797")
01877         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][93]["Score"], "34988639")
01878         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][94]["Id"], "10225945")
01879         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][94]["Score"], "34950419")
01880         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][95]["Id"], "11161560")
01881         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][95]["Score"], "34912466")
01882         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][96]["Id"], "11967147")
01883         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][96]["Score"], "34900540")
01884         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][97]["Id"], "14711415")
01885         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][97]["Score"], "34883714")
01886         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][98]["Id"], "2211824")
01887         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][98]["Score"], "34843507")
01888         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][99]["Id"], "15737064")
01889         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][99]["Score"], "34828187")
01890         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][100]["Id"], "7720068")
01891         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][100]["Score"], "34811182")
01892         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][101]["Id"], "9472001")
01893         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][101]["Score"], "34799321")
01894         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][102]["Id"], "11792803")
01895         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][102]["Score"], "34697393")
01896         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][103]["Id"], "11386760")
01897         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][103]["Score"], "34684610")
01898         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][104]["Id"], "15094189")
01899         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][104]["Score"], "34684021")
01900         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][105]["Id"], "9763420")
01901         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][105]["Score"], "34666950")
01902         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][106]["Id"], "10629219")
01903         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][106]["Score"], "34422925")
01904         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][107]["Id"], "11238410")
01905         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][107]["Score"], "34318521")
01906         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][108]["Id"], "17199038")
01907         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][108]["Score"], "34255594")
01908         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][109]["Id"], "12944469")
01909         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][109]["Score"], "34249507")
01910         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][110]["Id"], "15616192")
01911         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][110]["Score"], "34110517")
01912         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][111]["Id"], "11146660")
01913         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][111]["Score"], "34063257")
01914         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][112]["Id"], "11402066")
01915         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][112]["Score"], "34012520")
01916         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][113]["Id"], "6791901")
01917         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][113]["Score"], "33311119")
01918         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][114]["Id"], "7172865")
01919         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][114]["Score"], "32934223")
01920         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][115]["Id"], "8270646")
01921         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][115]["Score"], "32898701")
01922         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][116]["Id"], "1916263")
01923         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][116]["Score"], "32707765")
01924         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][117]["Id"], "7588080")
01925         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][117]["Score"], "32503526")
01926         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][118]["Id"], "7391142")
01927         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][118]["Score"], "31632645")
01928         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][119]["Id"], "6793236")
01929         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][119]["Score"], "31522175")
01930         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][120]["Id"], "2512302")
01931         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][120]["Score"], "30339372")
01932         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][121]["Id"], "7720069")
01933         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][121]["Score"], "30024525")
01934         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][122]["Id"], "8257792")
01935         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][122]["Score"], "29834355")
01936         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][123]["Id"], "3417141")
01937         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][123]["Score"], "27920818")
01938         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][124]["Id"], "3315496")
01939         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][124]["Score"], "27422009")
01940         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][125]["Id"], "1993311")
01941         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][125]["Score"], "26763828")
01942         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][126]["Id"], "6185450")
01943         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][126]["Score"], "26100420")
01944         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][127]["Id"], "1819515")
01945         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][127]["Score"], "26036804")
01946         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][128]["Id"], "7250964")
01947         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][128]["Score"], "25738652")
01948         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][129]["Id"], "8489280")
01949         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][129]["Score"], "25587858")
01950         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][130]["Id"], "7096444")
01951         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][130]["Score"], "24642544")
01952         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][131]["Id"], "348629")
01953         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][131]["Score"], "24432498")
01954         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][132]["Id"], "2275018")
01955         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][132]["Score"], "23077593")
01956         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][133]["Id"], "1747872")
01957         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][133]["Score"], "22933494")
01958         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][134]["Id"], "3547036")
01959         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][134]["Score"], "22925639")
01960         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][135]["Id"], "18291669")
01961         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][135]["Score"], "22762310")
01962         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][136]["Id"], "1576878")
01963         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][136]["Score"], "20846041")
01964         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][137]["Id"], "6230555")
01965         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][137]["Score"], "19354488")
01966         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][138]["Id"], "7627547")
01967         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][138]["Score"], "18940607")
01968         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][139]["Id"], "17678444")
01969         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][139]["Score"], "18834135")
01970         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][140]["Id"], "3366468")
01971         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][140]["Score"], "14831756")
01972         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][141]["Id"], "1959920")
01973         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][141]["Score"], "14156414")
01974         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][142]["Id"], "13242628")
01975         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][142]["Score"], "12584732")
01976         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][143]["Id"], "17248312")
01977         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][143]["Score"], "7610436")

Here is the call graph for this function:

Test parsing pubmed links returned by ELink (second test)

Definition at line 1991 of file test_Entrez.py.

01991 
01992     def test_pubmed2(self):
01993         '''Test parsing pubmed links returned by ELink (second test)
01994         '''
01995         # Retrieve PubMed related articles for PMIDs 11812492 11774222
01996         # with a publication date from 1995 to the present
01997         # To create the XML file, use
01998         # >>> Bio.Entrez.elink(dbfrom="pubmed", id="11812492,11774222",
01999         #                      db="pubmed", mindate="1995", datetype="pdat")
02000         handle = open('Entrez/elink3.xml', "rb")
02001         record = Entrez.read(handle)
02002         handle.close()
02003         self.assertEqual(len(record), 1)
02004         self.assertEqual(record[0]["DbFrom"], "pubmed")
02005         self.assertEqual(len(record[0]['IdList']), 2)
02006         self.assertEqual(record[0]['IdList'][0], "11812492")
02007         self.assertEqual(record[0]['IdList'][1], "11774222")
02008         self.assertEqual(record[0]["LinkSetDb"][0]["DbTo"], "pubmed")
02009         self.assertEqual(record[0]["LinkSetDb"][0]["LinkName"], "pubmed_pubmed")
02010         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][0]["Id"], "11812492")
02011         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][0]["Score"], "2147483647")
02012         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][1]["Id"], "11774222")
02013         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][1]["Score"], "2147483647")
02014         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][2]["Id"], "11668631")
02015         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][2]["Score"], "86345306")
02016         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][3]["Id"], "15111095")
02017         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][3]["Score"], "81604359")
02018         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][4]["Id"], "10731564")
02019         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][4]["Score"], "65665112")
02020         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][5]["Id"], "15780005")
02021         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][5]["Score"], "62251079")
02022         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][6]["Id"], "17885136")
02023         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][6]["Score"], "50322134")
02024         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][7]["Id"], "17470297")
02025         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][7]["Score"], "49148434")
02026         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][8]["Id"], "16005284")
02027         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][8]["Score"], "49035508")
02028         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][9]["Id"], "10856373")
02029         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][9]["Score"], "48363137")
02030         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][10]["Id"], "15383292")
02031         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][10]["Score"], "48347159")
02032         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][11]["Id"], "17040125")
02033         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][11]["Score"], "48301243")
02034         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][12]["Id"], "10770808")
02035         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][12]["Score"], "47696325")
02036         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][13]["Id"], "11125122")
02037         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][13]["Score"], "45889695")
02038         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][14]["Id"], "15287587")
02039         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][14]["Score"], "45599733")
02040         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][15]["Id"], "15839745")
02041         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][15]["Score"], "44650620")
02042         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][16]["Id"], "10612825")
02043         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][16]["Score"], "44445812")
02044         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][17]["Id"], "15024419")
02045         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][17]["Score"], "44075047")
02046         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][18]["Id"], "12743802")
02047         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][18]["Score"], "43873158")
02048         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][19]["Id"], "15238684")
02049         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][19]["Score"], "43856864")
02050         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][20]["Id"], "12386340")
02051         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][20]["Score"], "43770229")
02052         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][21]["Id"], "16269725")
02053         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][21]["Score"], "43712594")
02054         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][22]["Id"], "10592273")
02055         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][22]["Score"], "43640108")
02056         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][23]["Id"], "15383308")
02057         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][23]["Score"], "42835474")
02058         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][24]["Id"], "15676075")
02059         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][24]["Score"], "42272663")
02060         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][25]["Id"], "11774221")
02061         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][25]["Score"], "42058380")
02062         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][26]["Id"], "10592272")
02063         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][26]["Score"], "41719917")
02064         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][27]["Id"], "15997407")
02065         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][27]["Score"], "41535461")
02066         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][28]["Id"], "15774024")
02067         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][28]["Score"], "41351079")
02068         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][29]["Id"], "11233160")
02069         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][29]["Score"], "41268965")
02070         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][30]["Id"], "14702162")
02071         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][30]["Score"], "41147661")
02072         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][31]["Id"], "16616613")
02073         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][31]["Score"], "41073100")
02074         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][32]["Id"], "17202370")
02075         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][32]["Score"], "40819600")
02076         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][33]["Id"], "15478601")
02077         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][33]["Score"], "40578911")
02078         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][34]["Id"], "15322925")
02079         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][34]["Score"], "40548101")
02080         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][35]["Id"], "11472559")
02081         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][35]["Score"], "40508356")
02082         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][36]["Id"], "11925998")
02083         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][36]["Score"], "39844751")
02084         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][37]["Id"], "12372145")
02085         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][37]["Score"], "39809277")
02086         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][38]["Id"], "17562224")
02087         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][38]["Score"], "38850094")
02088         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][39]["Id"], "15037105")
02089         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][39]["Score"], "38758229")
02090         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][40]["Id"], "14998511")
02091         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][40]["Score"], "38608049")
02092         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][41]["Id"], "10092480")
02093         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][41]["Score"], "38410463")
02094         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][42]["Id"], "7729881")
02095         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][42]["Score"], "38329800")
02096         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][43]["Id"], "12933853")
02097         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][43]["Score"], "37881850")
02098         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][44]["Id"], "16818783")
02099         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][44]["Score"], "37835096")
02100         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][45]["Id"], "16406333")
02101         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][45]["Score"], "37775136")
02102         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][46]["Id"], "11472553")
02103         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][46]["Score"], "37750745")
02104         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][47]["Id"], "11403387")
02105         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][47]["Score"], "37707525")
02106         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][48]["Id"], "17306254")
02107         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][48]["Score"], "37685833")
02108         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][49]["Id"], "11516587")
02109         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][49]["Score"], "37620966")
02110         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][50]["Id"], "9274032")
02111         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][50]["Score"], "37528832")
02112         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][51]["Id"], "12856318")
02113         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][51]["Score"], "37484650")
02114         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][52]["Id"], "14695526")
02115         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][52]["Score"], "37429895")
02116         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][53]["Id"], "12481045")
02117         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][53]["Score"], "37051674")
02118         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][54]["Id"], "11752345")
02119         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][54]["Score"], "36875760")
02120         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][55]["Id"], "12467974")
02121         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][55]["Score"], "36787103")
02122         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][56]["Id"], "11214099")
02123         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][56]["Score"], "36710749")
02124         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][57]["Id"], "14638788")
02125         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][57]["Score"], "36667774")
02126         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][58]["Id"], "16278157")
02127         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][58]["Score"], "36598908")
02128         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][59]["Id"], "11752242")
02129         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][59]["Score"], "36555638")
02130         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][60]["Id"], "14681474")
02131         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][60]["Score"], "36317853")
02132         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][61]["Id"], "15944077")
02133         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][61]["Score"], "36264027")
02134         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][62]["Id"], "12625936")
02135         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][62]["Score"], "36088314")
02136         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][63]["Id"], "16672453")
02137         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][63]["Score"], "35985060")
02138         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][64]["Id"], "14695451")
02139         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][64]["Score"], "35971708")
02140         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][65]["Id"], "12402526")
02141         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][65]["Score"], "35942170")
02142         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][66]["Id"], "10592200")
02143         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][66]["Score"], "35932875")
02144         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][67]["Id"], "17584494")
02145         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][67]["Score"], "35869907")
02146         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][68]["Id"], "17761848")
02147         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][68]["Score"], "35868206")
02148         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][69]["Id"], "16697384")
02149         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][69]["Score"], "35792791")
02150         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][70]["Id"], "8784774")
02151         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][70]["Score"], "35787497")
02152         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][71]["Id"], "18000556")
02153         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][71]["Score"], "35701408")
02154         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][72]["Id"], "15828434")
02155         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][72]["Score"], "35604052")
02156         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][73]["Id"], "10511685")
02157         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][73]["Score"], "35598319")
02158         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][74]["Id"], "15608284")
02159         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][74]["Score"], "35439627")
02160         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][75]["Id"], "11125071")
02161         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][75]["Score"], "35414962")
02162         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][76]["Id"], "11791238")
02163         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][76]["Score"], "35411948")
02164         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][77]["Id"], "15710433")
02165         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][77]["Score"], "35197152")
02166         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][78]["Id"], "16164550")
02167         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][78]["Score"], "35172458")
02168         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][79]["Id"], "17697334")
02169         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][79]["Score"], "35121478")
02170         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][80]["Id"], "12537121")
02171         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][80]["Score"], "35054632")
02172         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][81]["Id"], "12860672")
02173         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][81]["Score"], "35046651")
02174         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][82]["Id"], "15630619")
02175         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][82]["Score"], "35034076")
02176         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][83]["Id"], "15125639")
02177         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][83]["Score"], "35007338")
02178         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][84]["Id"], "11443570")
02179         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][84]["Score"], "34935553")
02180         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][85]["Id"], "12208043")
02181         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][85]["Score"], "34923107")
02182         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][86]["Id"], "11731507")
02183         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][86]["Score"], "34875290")
02184         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][87]["Id"], "11988510")
02185         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][87]["Score"], "34773036")
02186         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][88]["Id"], "11125038")
02187         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][88]["Score"], "34754724")
02188         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][89]["Id"], "16381944")
02189         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][89]["Score"], "34747225")
02190         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][90]["Id"], "17135206")
02191         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][90]["Score"], "34735015")
02192         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][91]["Id"], "17099226")
02193         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][91]["Score"], "34698054")
02194         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][92]["Id"], "15608233")
02195         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][92]["Score"], "34588400")
02196         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][93]["Id"], "16672057")
02197         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][93]["Score"], "34583177")
02198         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][94]["Id"], "15687015")
02199         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][94]["Score"], "34357840")
02200         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][95]["Id"], "10782070")
02201         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][95]["Score"], "34326746")
02202         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][96]["Id"], "14970722")
02203         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][96]["Score"], "34217911")
02204         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][97]["Id"], "18027007")
02205         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][97]["Score"], "34185436")
02206         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][98]["Id"], "12387845")
02207         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][98]["Score"], "34083368")
02208         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][99]["Id"], "16237012")
02209         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][99]["Score"], "34070163")
02210         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][100]["Id"], "16351742")
02211         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][100]["Score"], "33775198")
02212         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][101]["Id"], "12203989")
02213         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][101]["Score"], "33759170")
02214         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][102]["Id"], "15474306")
02215         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][102]["Score"], "33737675")
02216         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][103]["Id"], "15270538")
02217         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][103]["Score"], "33697306")
02218         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][104]["Id"], "17518759")
02219         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][104]["Score"], "33695140")
02220         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][105]["Id"], "16085497")
02221         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][105]["Score"], "33652537")
02222         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][106]["Id"], "16423288")
02223         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][106]["Score"], "33564554")
02224         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][107]["Id"], "16251775")
02225         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][107]["Score"], "33547325")
02226         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][108]["Id"], "12632152")
02227         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][108]["Score"], "33497998")
02228         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][109]["Id"], "11269648")
02229         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][109]["Score"], "33493800")
02230         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][110]["Id"], "16103603")
02231         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][110]["Score"], "33378796")
02232         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][111]["Id"], "12816546")
02233         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][111]["Score"], "33316167")
02234         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][112]["Id"], "10221636")
02235         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][112]["Score"], "33310814")
02236         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][113]["Id"], "16381973")
02237         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][113]["Score"], "33236048")
02238         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][114]["Id"], "15977173")
02239         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][114]["Score"], "33222497")
02240         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][115]["Id"], "16351753")
02241         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][115]["Score"], "33205084")
02242         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][116]["Id"], "15317790")
02243         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][116]["Score"], "33195439")
02244         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][117]["Id"], "17135198")
02245         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][117]["Score"], "33189951")
02246         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][118]["Id"], "12701381")
02247         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][118]["Score"], "33172200")
02248         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][119]["Id"], "12203988")
02249         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][119]["Score"], "33172077")
02250         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][120]["Id"], "11456466")
02251         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][120]["Score"], "33124900")
02252         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][121]["Id"], "16936055")
02253         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][121]["Score"], "33081742")
02254         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][122]["Id"], "17183477")
02255         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][122]["Score"], "33005068")
02256         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][123]["Id"], "9455480")
02257         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][123]["Score"], "32997067")
02258         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][124]["Id"], "12490454")
02259         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][124]["Score"], "32995041")
02260         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][125]["Id"], "12435493")
02261         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][125]["Score"], "32990122")
02262         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][126]["Id"], "11038309")
02263         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][126]["Score"], "32977663")
02264         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][127]["Id"], "10366827")
02265         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][127]["Score"], "32903347")
02266         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][128]["Id"], "10466136")
02267         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][128]["Score"], "32869387")
02268         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][129]["Id"], "16381840")
02269         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][129]["Score"], "32816923")
02270         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][130]["Id"], "11825250")
02271         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][130]["Score"], "32776183")
02272         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][131]["Id"], "12234534")
02273         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][131]["Score"], "32708547")
02274         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][132]["Id"], "14624247")
02275         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][132]["Score"], "32708542")
02276         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][133]["Id"], "12886019")
02277         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][133]["Score"], "32653276")
02278         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][134]["Id"], "12041732")
02279         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][134]["Score"], "32607185")
02280         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][135]["Id"], "15336912")
02281         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][135]["Score"], "32596453")
02282         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][136]["Id"], "12652910")
02283         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][136]["Score"], "32567397")
02284         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][137]["Id"], "14681353")
02285         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][137]["Score"], "32549157")
02286         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][138]["Id"], "12586873")
02287         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][138]["Score"], "32504063")
02288         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][139]["Id"], "11481430")
02289         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][139]["Score"], "32462602")
02290         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][140]["Id"], "15254259")
02291         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][140]["Score"], "32441737")
02292         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][141]["Id"], "16873516")
02293         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][141]["Score"], "32433603")
02294         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][142]["Id"], "17170002")
02295         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][142]["Score"], "32425626")
02296         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][143]["Id"], "12519941")
02297         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][143]["Score"], "32367760")
02298         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][144]["Id"], "11197770")
02299         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][144]["Score"], "32362623")
02300         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][145]["Id"], "11240843")
02301         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][145]["Score"], "32347064")
02302         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][146]["Id"], "11328780")
02303         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][146]["Score"], "32333807")
02304         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][147]["Id"], "11875041")
02305         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][147]["Score"], "32312036")
02306         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][148]["Id"], "11752243")
02307         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][148]["Score"], "32268199")
02308         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][149]["Id"], "16907992")
02309         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][149]["Score"], "32247019")
02310         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][150]["Id"], "15046636")
02311         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][150]["Score"], "32214942")
02312         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][151]["Id"], "10592169")
02313         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][151]["Score"], "32137798")
02314         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][152]["Id"], "17919582")
02315         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][152]["Score"], "32137767")
02316         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][153]["Id"], "18025705")
02317         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][153]["Score"], "32131322")
02318         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][154]["Id"], "11029673")
02319         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][154]["Score"], "32126363")
02320         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][155]["Id"], "9047337")
02321         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][155]["Score"], "32090163")
02322         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][156]["Id"], "11080372")
02323         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][156]["Score"], "31924475")
02324         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][157]["Id"], "18045790")
02325         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][157]["Score"], "31834367")
02326         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][158]["Id"], "10215019")
02327         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][158]["Score"], "31823989")
02328         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][159]["Id"], "14706096")
02329         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][159]["Score"], "31781977")
02330         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][160]["Id"], "17537593")
02331         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][160]["Score"], "31771566")
02332         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][161]["Id"], "12819149")
02333         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][161]["Score"], "31683943")
02334         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][162]["Id"], "17880721")
02335         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][162]["Score"], "31630816")
02336         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][163]["Id"], "14681478")
02337         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][163]["Score"], "31620457")
02338         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][164]["Id"], "11985867")
02339         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][164]["Score"], "31544318")
02340         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][165]["Id"], "15608248")
02341         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][165]["Score"], "31542256")
02342         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][166]["Id"], "17401150")
02343         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][166]["Score"], "31497289")
02344         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][167]["Id"], "10359795")
02345         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][167]["Score"], "31460779")
02346         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][168]["Id"], "15608286")
02347         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][168]["Score"], "31435112")
02348         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][169]["Id"], "15774022")
02349         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][169]["Score"], "31425851")
02350         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][170]["Id"], "9921679")
02351         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][170]["Score"], "31396086")
02352         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][171]["Id"], "17038195")
02353         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][171]["Score"], "31380822")
02354         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][172]["Id"], "15491544")
02355         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][172]["Score"], "31294370")
02356         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][173]["Id"], "10469257")
02357         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][173]["Score"], "31291548")
02358         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][174]["Id"], "15487498")
02359         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][174]["Score"], "31268351")
02360         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][175]["Id"], "15383303")
02361         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][175]["Score"], "31264596")
02362         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][176]["Id"], "15643605")
02363         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][176]["Score"], "31259953")
02364         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][177]["Id"], "16418238")
02365         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][177]["Score"], "31259003")
02366         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][178]["Id"], "15500248")
02367         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][178]["Score"], "31252080")
02368         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][179]["Id"], "15479945")
02369         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][179]["Score"], "31249988")
02370         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][180]["Id"], "16962738")
02371         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][180]["Score"], "31249405")
02372         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][181]["Id"], "15094394")
02373         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][181]["Score"], "31200337")
02374         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][182]["Id"], "11758285")
02375         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][182]["Score"], "31180435")
02376         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][183]["Id"], "15723693")
02377         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][183]["Score"], "31083464")
02378         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][184]["Id"], "16710453")
02379         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][184]["Score"], "31083136")
02380         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][185]["Id"], "15311460")
02381         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][185]["Score"], "31068402")
02382         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][186]["Id"], "16549670")
02383         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][186]["Score"], "30995148")
02384         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][187]["Id"], "18180957")
02385         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][187]["Score"], "30973190")
02386         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][188]["Id"], "14681351")
02387         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][188]["Score"], "30968930")
02388         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][189]["Id"], "10902212")
02389         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][189]["Score"], "30960861")
02390         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][190]["Id"], "15357877")
02391         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][190]["Score"], "30947680")
02392         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][191]["Id"], "12356773")
02393         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][191]["Score"], "30910321")
02394         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][192]["Id"], "17537669")
02395         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][192]["Score"], "30893205")
02396         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][193]["Id"], "16551372")
02397         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][193]["Score"], "30889080")
02398         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][194]["Id"], "15231810")
02399         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][194]["Score"], "30863616")
02400         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][195]["Id"], "12819150")
02401         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][195]["Score"], "30847027")
02402         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][196]["Id"], "15608257")
02403         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][196]["Score"], "30840234")
02404         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][197]["Id"], "17384426")
02405         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][197]["Score"], "30827754")
02406         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][198]["Id"], "15811532")
02407         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][198]["Score"], "30823185")
02408         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][199]["Id"], "10612821")
02409         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][199]["Score"], "30822187")
02410         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][200]["Id"], "17062145")
02411         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][200]["Score"], "30813605")
02412         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][201]["Id"], "11355885")
02413         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][201]["Score"], "30810648")
02414         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][202]["Id"], "15746365")
02415         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][202]["Score"], "30784209")
02416         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][203]["Id"], "16282300")
02417         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][203]["Score"], "30782807")
02418         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][204]["Id"], "15546336")
02419         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][204]["Score"], "30773578")
02420         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][205]["Id"], "11741630")
02421         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][205]["Score"], "30764995")
02422         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][206]["Id"], "15980532")
02423         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][206]["Score"], "30735790")
02424         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][207]["Id"], "12519977")
02425         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][207]["Score"], "30707395")
02426         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][208]["Id"], "12436197")
02427         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][208]["Score"], "30705501")
02428         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][209]["Id"], "11125059")
02429         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][209]["Score"], "30614888")
02430         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][210]["Id"], "11163442")
02431         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][210]["Score"], "30550965")
02432         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][211]["Id"], "12519964")
02433         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][211]["Score"], "30518025")
02434         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][212]["Id"], "12083398")
02435         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][212]["Score"], "30466595")
02436         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][213]["Id"], "11908756")
02437         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][213]["Score"], "30462080")
02438         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][214]["Id"], "15608226")
02439         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][214]["Score"], "30335152")
02440         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][215]["Id"], "16845091")
02441         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][215]["Score"], "30277120")
02442         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][216]["Id"], "17338820")
02443         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][216]["Score"], "30208452")
02444         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][217]["Id"], "10407783")
02445         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][217]["Score"], "30171504")
02446         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][218]["Id"], "17130148")
02447         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][218]["Score"], "30160136")
02448         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][219]["Id"], "14681471")
02449         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][219]["Score"], "30155757")
02450         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][220]["Id"], "17445272")
02451         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][220]["Score"], "30015229")
02452         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][221]["Id"], "11279516")
02453         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][221]["Score"], "29947199")
02454         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][222]["Id"], "17221864")
02455         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][222]["Score"], "29893674")
02456         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][223]["Id"], "15827081")
02457         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][223]["Score"], "29891924")
02458         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][224]["Id"], "11222582")
02459         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][224]["Score"], "29878915")
02460         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][225]["Id"], "11384164")
02461         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][225]["Score"], "29871698")
02462         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][226]["Id"], "17877839")
02463         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][226]["Score"], "29843765")
02464         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][227]["Id"], "17151077")
02465         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][227]["Score"], "29841695")
02466         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][228]["Id"], "16381974")
02467         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][228]["Score"], "29740312")
02468         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][229]["Id"], "10592263")
02469         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][229]["Score"], "29633946")
02470         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][230]["Id"], "15608212")
02471         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][230]["Score"], "29621479")
02472         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][231]["Id"], "9847217")
02473         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][231]["Score"], "29618439")
02474         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][232]["Id"], "17142236")
02475         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][232]["Score"], "29577611")
02476         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][233]["Id"], "17059604")
02477         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][233]["Score"], "29569767")
02478         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][234]["Id"], "16845079")
02479         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][234]["Score"], "29506663")
02480         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][235]["Id"], "14727153")
02481         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][235]["Score"], "29368276")
02482         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][236]["Id"], "18045498")
02483         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][236]["Score"], "29364312")
02484         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][237]["Id"], "17185755")
02485         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][237]["Score"], "29331905")
02486         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][238]["Id"], "18025704")
02487         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][238]["Score"], "29323161")
02488         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][239]["Id"], "15215374")
02489         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][239]["Score"], "29306559")
02490         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][240]["Id"], "17135185")
02491         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][240]["Score"], "29236297")
02492         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][241]["Id"], "10466135")
02493         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][241]["Score"], "29231855")
02494         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][242]["Id"], "17148475")
02495         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][242]["Score"], "29229044")
02496         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][243]["Id"], "15657101")
02497         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][243]["Score"], "29209567")
02498         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][244]["Id"], "14681490")
02499         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][244]["Score"], "29189708")
02500         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][245]["Id"], "15714328")
02501         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][245]["Score"], "29183488")
02502         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][246]["Id"], "14960477")
02503         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][246]["Score"], "29040531")
02504         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][247]["Id"], "11015564")
02505         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][247]["Score"], "29011368")
02506         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][248]["Id"], "18064491")
02507         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][248]["Score"], "28956740")
02508         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][249]["Id"], "12734009")
02509         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][249]["Score"], "28950064")
02510         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][250]["Id"], "17094804")
02511         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][250]["Score"], "28906953")
02512         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][251]["Id"], "17908294")
02513         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][251]["Score"], "28897717")
02514         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][252]["Id"], "16176584")
02515         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][252]["Score"], "28874470")
02516         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][253]["Id"], "14715089")
02517         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][253]["Score"], "28763886")
02518         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][254]["Id"], "14681408")
02519         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][254]["Score"], "28697827")
02520         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][255]["Id"], "14594716")
02521         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][255]["Score"], "28686075")
02522         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][256]["Id"], "16528802")
02523         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][256]["Score"], "28644452")
02524         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][257]["Id"], "16010002")
02525         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][257]["Score"], "28637570")
02526         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][258]["Id"], "17430565")
02527         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][258]["Score"], "28635513")
02528         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][259]["Id"], "16452787")
02529         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][259]["Score"], "28631832")
02530         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][260]["Id"], "11197127")
02531         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][260]["Score"], "28619225")
02532         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][261]["Id"], "8682188")
02533         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][261]["Score"], "28592521")
02534         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][262]["Id"], "12519940")
02535         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][262]["Score"], "28573991")
02536         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][263]["Id"], "17121775")
02537         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][263]["Score"], "28448726")
02538         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][264]["Id"], "16371163")
02539         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][264]["Score"], "28373394")
02540         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][265]["Id"], "15300845")
02541         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][265]["Score"], "28338477")
02542         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][266]["Id"], "15248903")
02543         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][266]["Score"], "28323328")
02544         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][267]["Id"], "11319266")
02545         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][267]["Score"], "28293166")
02546         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][268]["Id"], "16336665")
02547         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][268]["Score"], "28231249")
02548         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][269]["Id"], "14681350")
02549         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][269]["Score"], "28227327")
02550         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][270]["Id"], "16216831")
02551         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][270]["Score"], "28224610")
02552         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][271]["Id"], "15494741")
02553         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][271]["Score"], "28190925")
02554         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][272]["Id"], "17088289")
02555         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][272]["Score"], "28168901")
02556         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][273]["Id"], "17099235")
02557         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][273]["Score"], "28159766")
02558         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][274]["Id"], "15215372")
02559         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][274]["Score"], "28129693")
02560         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][275]["Id"], "9169870")
02561         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][275]["Score"], "28117392")
02562         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][276]["Id"], "10077537")
02563         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][276]["Score"], "27911205")
02564         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][277]["Id"], "18172929")
02565         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][277]["Score"], "27885172")
02566         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][278]["Id"], "9571806")
02567         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][278]["Score"], "27841468")
02568         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][279]["Id"], "11752280")
02569         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][279]["Score"], "27795833")
02570         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][280]["Id"], "11414208")
02571         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][280]["Score"], "27725996")
02572         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][281]["Id"], "9298642")
02573         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][281]["Score"], "27716027")
02574         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][282]["Id"], "18073380")
02575         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][282]["Score"], "27437383")
02576         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][283]["Id"], "14527308")
02577         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][283]["Score"], "27332641")
02578         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][284]["Id"], "9847220")
02579         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][284]["Score"], "27083894")
02580         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][285]["Id"], "10413661")
02581         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][285]["Score"], "27073030")
02582         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][286]["Id"], "10407677")
02583         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][286]["Score"], "26907635")
02584         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][287]["Id"], "11244060")
02585         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][287]["Score"], "26897688")
02586         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][288]["Id"], "10227170")
02587         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][288]["Score"], "26766431")
02588         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][289]["Id"], "8719164")
02589         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][289]["Score"], "26515360")
02590         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][290]["Id"], "18359019")
02591         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][290]["Score"], "26225983")
02592         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][291]["Id"], "10511680")
02593         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][291]["Score"], "26031196")
02594         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][292]["Id"], "9884329")
02595         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][292]["Score"], "25992564")
02596         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][293]["Id"], "17827295")
02597         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][293]["Score"], "25989152")
02598         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][294]["Id"], "10899154")
02599         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][294]["Score"], "25843128")
02600         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][295]["Id"], "11668619")
02601         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][295]["Score"], "25822950")
02602         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][296]["Id"], "18386064")
02603         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][296]["Score"], "25702942")
02604         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][297]["Id"], "11092731")
02605         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][297]["Score"], "25618899")
02606         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][298]["Id"], "9520376")
02607         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][298]["Score"], "25549761")
02608         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][299]["Id"], "11756688")
02609         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][299]["Score"], "25440634")
02610         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][300]["Id"], "10737802")
02611         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][300]["Score"], "25362744")
02612         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][301]["Id"], "9879937")
02613         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][301]["Score"], "25277089")
02614         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][302]["Id"], "17822801")
02615         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][302]["Score"], "25252984")
02616         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][303]["Id"], "10965872")
02617         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][303]["Score"], "25208185")
02618         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][304]["Id"], "10511682")
02619         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][304]["Score"], "25183443")
02620         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][305]["Id"], "10851186")
02621         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][305]["Score"], "25092764")
02622         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][306]["Id"], "9775388")
02623         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][306]["Score"], "25026910")
02624         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][307]["Id"], "10810023")
02625         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][307]["Score"], "24904718")
02626         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][308]["Id"], "18032438")
02627         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][308]["Score"], "24509777")
02628         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][309]["Id"], "18377816")
02629         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][309]["Score"], "24373788")
02630         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][310]["Id"], "11774190")
02631         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][310]["Score"], "24185658")
02632         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][311]["Id"], "10484179")
02633         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][311]["Score"], "24122767")
02634         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][312]["Id"], "9625791")
02635         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][312]["Score"], "24049917")
02636         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][313]["Id"], "11446511")
02637         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][313]["Score"], "24048253")
02638         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][314]["Id"], "10066467")
02639         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][314]["Score"], "23968405")
02640         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][315]["Id"], "11783003")
02641         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][315]["Score"], "23393870")
02642         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][316]["Id"], "10611059")
02643         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][316]["Score"], "23255298")
02644         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][317]["Id"], "10587943")
02645         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][317]["Score"], "23014503")
02646         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][318]["Id"], "10612820")
02647         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][318]["Score"], "22990878")
02648         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][319]["Id"], "9685316")
02649         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][319]["Score"], "22771348")
02650         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][320]["Id"], "11125121")
02651         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][320]["Score"], "22732820")
02652         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][321]["Id"], "10075567")
02653         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][321]["Score"], "22670427")
02654         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][322]["Id"], "11084929")
02655         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][322]["Score"], "22397665")
02656         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][323]["Id"], "11357826")
02657         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][323]["Score"], "22362882")
02658         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][324]["Id"], "17983575")
02659         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][324]["Score"], "22305320")
02660         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][325]["Id"], "11038308")
02661         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][325]["Score"], "22115670")
02662         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][326]["Id"], "18257289")
02663         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][326]["Score"], "22053176")
02664         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][327]["Id"], "10419978")
02665         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][327]["Score"], "22016184")
02666         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][328]["Id"], "9421619")
02667         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][328]["Score"], "21957407")
02668         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][329]["Id"], "10592198")
02669         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][329]["Score"], "21803908")
02670         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][330]["Id"], "11483982")
02671         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][330]["Score"], "20783817")
02672         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][331]["Id"], "11329386")
02673         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][331]["Score"], "20223493")
02674         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][332]["Id"], "10587942")
02675         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][332]["Score"], "20208799")
02676         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][333]["Id"], "10810024")
02677         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][333]["Score"], "19989188")
02678         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][334]["Id"], "11480780")
02679         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][334]["Score"], "19974101")
02680         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][335]["Id"], "11802378")
02681         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][335]["Score"], "19738532")
02682         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][336]["Id"], "10610803")
02683         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][336]["Score"], "19359100")
02684         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][337]["Id"], "10407668")
02685         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][337]["Score"], "19070525")
02686         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][338]["Id"], "18287701")
02687         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][338]["Score"], "19065945")
02688         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][339]["Id"], "10963611")
02689         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][339]["Score"], "18962273")
02690         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][340]["Id"], "10447503")
02691         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][340]["Score"], "17406980")
02692         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][341]["Id"], "9830540")
02693         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][341]["Score"], "17143709")
02694         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][342]["Id"], "11462837")
02695         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][342]["Score"], "16819799")
02696         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][343]["Id"], "10637631")
02697         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][343]["Score"], "16390796")
02698         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][344]["Id"], "11387032")
02699         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][344]["Score"], "15698695")
02700         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][345]["Id"], "18365535")
02701         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][345]["Score"], "15494816")
02702         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][346]["Id"], "15181901")
02703         self.assertEqual(record[0]["LinkSetDb"][0]["Link"][346]["Score"], "14385628")

Here is the call graph for this function:

Test parsing pubmed link returned by ELink (third test)

Definition at line 3142 of file test_Entrez.py.

03142 
03143     def test_pubmed3(self):
03144         '''Test parsing pubmed link returned by ELink (third test)
03145         '''
03146         # Create a hyperlink to the first link available for PMID 10611131
03147         # in PubMed
03148         # To create the XML file, use
03149         # >>> Bio.Entrez.elink(dbfrom="pubmed", id="10611131", cmd="prlinks")
03150 
03151         handle = open('Entrez/elink5.xml', "rb")
03152         record = Entrez.read(handle)
03153         handle.close()
03154         self.assertEqual(record[0]["DbFrom"], "pubmed")
03155         self.assertEqual(len(record[0]["IdUrlList"]), 1)
03156         self.assertEqual(len(record[0]["IdUrlList"][0]), 2)
03157         self.assertEqual(record[0]["IdUrlList"][0]["Id"], "10611131")
03158         self.assertEqual(len(record[0]["IdUrlList"][0]["ObjUrl"]), 1)
03159         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Url"], "http://brain.oxfordjournals.org/cgi/pmidlookup?view=long&pmid=10611131")
03160         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["IconUrl"], "http://www.ncbi.nlm.nih.gov/entrez/query/egifs/http:--highwire.stanford.edu-icons-externalservices-pubmed-custom-oxfordjournals_final_free.gif")
03161         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["SubjectType"], ["publishers/providers"])
03162         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Attribute"][0], "publisher of information in URL")
03163         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Attribute"][1], "full-text online")
03164         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["Name"], "HighWire Press")
03165         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["NameAbbr"], "HighWire")
03166         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["Id"], "3051")
03167         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["Url"], "http://highwire.stanford.edu")
03168         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["IconUrl"], "http://highwire.stanford.edu/icons/externalservices/pubmed/highwirepress.jpg")
03169 

Here is the call graph for this function:

Test parsing pubmed links returned by ELink (fourth test)

Definition at line 3170 of file test_Entrez.py.

03170 
03171     def test_pubmed4(self):
03172         '''Test parsing pubmed links returned by ELink (fourth test)
03173         '''
03174         # List all available links in PubMed, except for libraries, for
03175         # PMIDs 12085856 and 12085853
03176         # To create the XML file, use
03177         # >>> Bio.Entrez.elink(dbfrom="pubmed", id="12085856,12085853", cmd="llinks")
03178         handle = open('Entrez/elink6.xml', "rb")
03179         record = Entrez.read(handle)
03180         handle.close()
03181         self.assertEqual(record[0]["DbFrom"], "pubmed")
03182         self.assertEqual(len(record[0]["IdUrlList"]), 2)
03183         self.assertEqual(record[0]["IdUrlList"][0]["Id"], "12085856")
03184         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Url"], "http://symptomresearch.nih.gov/chapter_1/index.htm")
03185         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["SubjectType"], ["online tutorials/courses"])
03186         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["Name"], "New England Research Institutes Inc.")
03187         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["NameAbbr"], "NERI")
03188         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["Id"], "3291")
03189         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][0]["Provider"]["Url"], "http://www.symptomresearch.com")
03190         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["Url"], "http://www.nlm.nih.gov/medlineplus/coronaryarterybypasssurgery.html")
03191         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["IconUrl"], "http://www.ncbi.nlm.nih.gov/entrez/query/egifs/http:--www.nlm.nih.gov-medlineplus-images-linkout_sm.gif")
03192         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["LinkName"], "Coronary Artery Bypass Surgery")
03193         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["SubjectType"], ["consumer health"])
03194         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["Provider"]["Name"], "MedlinePlus Health Information")
03195         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["Provider"]["NameAbbr"], "MEDPLUS")
03196         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["Provider"]["Id"], "3162")
03197         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["Provider"]["Url"], "http://medlineplus.gov/")
03198         self.assertEqual(record[0]["IdUrlList"][0]["ObjUrl"][1]["Provider"]["IconUrl"], "http://www.nlm.nih.gov/medlineplus/images/linkout_sm.gif")
03199 
03200         self.assertEqual(record[0]["IdUrlList"][1]["Id"], "12085853")
03201         self.assertEqual(len(record[0]["IdUrlList"][1]["ObjUrl"]), 4)
03202         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["Url"], "http://www.nlm.nih.gov/medlineplus/arrhythmia.html")
03203         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["IconUrl"], "http://www.ncbi.nlm.nih.gov/entrez/query/egifs/http:--www.nlm.nih.gov-medlineplus-images-linkout_sm.gif")
03204         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["LinkName"], "Arrhythmia")
03205         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["SubjectType"], ["consumer health"])
03206         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["Provider"]["Name"], "MedlinePlus Health Information")
03207         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["Provider"]["NameAbbr"], "MEDPLUS")
03208         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["Provider"]["Id"], "3162")
03209         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["Provider"]["Url"], "http://medlineplus.gov/")
03210         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][0]["Provider"]["IconUrl"], "http://www.nlm.nih.gov/medlineplus/images/linkout_sm.gif")
03211         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["Url"], "http://www.nlm.nih.gov/medlineplus/exerciseandphysicalfitness.html")
03212         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["IconUrl"], "http://www.ncbi.nlm.nih.gov/entrez/query/egifs/http:--www.nlm.nih.gov-medlineplus-images-linkout_sm.gif")
03213         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["LinkName"], "Exercise and Physical Fitness")
03214         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["SubjectType"], ["consumer health"])
03215         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["Provider"]["Name"], "MedlinePlus Health Information")
03216         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["Provider"]["NameAbbr"], "MEDPLUS")
03217         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["Provider"]["Id"], "3162")
03218         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["Provider"]["Url"], "http://medlineplus.gov/")
03219         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][1]["Provider"]["IconUrl"], "http://www.nlm.nih.gov/medlineplus/images/linkout_sm.gif")
03220         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["Url"], "http://www.nlm.nih.gov/medlineplus/exerciseforchildren.html")
03221         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["IconUrl"], "http://www.ncbi.nlm.nih.gov/entrez/query/egifs/http:--www.nlm.nih.gov-medlineplus-images-linkout_sm.gif")
03222         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["LinkName"], "Exercise for Children")
03223         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["SubjectType"], ["consumer health"])
03224         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["Provider"]["Name"], "MedlinePlus Health Information")
03225         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["Provider"]["NameAbbr"], "MEDPLUS")
03226         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["Provider"]["Id"], "3162")
03227         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["Provider"]["Url"], "http://medlineplus.gov/")
03228         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][2]["Provider"]["IconUrl"], "http://www.nlm.nih.gov/medlineplus/images/linkout_sm.gif")
03229         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["Url"], "http://www.nlm.nih.gov/medlineplus/pacemakersandimplantabledefibrillators.html")
03230         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["IconUrl"], "http://www.ncbi.nlm.nih.gov/entrez/query/egifs/http:--www.nlm.nih.gov-medlineplus-images-linkout_sm.gif")
03231         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["LinkName"], "Pacemakers and Implantable Defibrillators")
03232         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["SubjectType"], ["consumer health"])
03233         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["Provider"]["Name"], "MedlinePlus Health Information")
03234         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["Provider"]["NameAbbr"], "MEDPLUS")
03235         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["Provider"]["Id"], "3162")
03236         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["Provider"]["Url"], "http://medlineplus.gov/")
03237         self.assertEqual(record[0]["IdUrlList"][1]["ObjUrl"][3]["Provider"]["IconUrl"], "http://www.nlm.nih.gov/medlineplus/images/linkout_sm.gif")

Here is the call graph for this function:

Test parsing pubmed links returned by ELink (fifth test)

Definition at line 3238 of file test_Entrez.py.

03238 
03239     def test_pubmed5(self):
03240         '''Test parsing pubmed links returned by ELink (fifth test)
03241         '''
03242         # List Entrez database links for PubMed PMIDs 12169658 and 11748140
03243         # To create the XML file, use
03244         # >>> Bio.Entrez.elink(dbfrom="pubmed", id="12169658,11748140",
03245         #                      cmd="acheck")
03246         handle = open('Entrez/elink7.xml', "rb")
03247         record = Entrez.read(handle)
03248         handle.close()
03249         self.assertEqual(len(record), 1)
03250         self.assertEqual(record[0]["DbFrom"], "pubmed")
03251         self.assertEqual(len(record[0]["IdCheckList"]), 2)
03252         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["Id"], "12169658")
03253         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][0]["DbTo"], "books")
03254         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][0]["LinkName"], "pubmed_books_refs")
03255         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][0]["MenuTag"], "Cited in Books")
03256         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][0]["HtmlTag"], "Cited in Books")
03257         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][0]["Priority"], "185")
03258         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][1]["DbTo"], "gene")
03259         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][1]["LinkName"], "pubmed_gene")
03260         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][1]["MenuTag"], "Gene Links")
03261         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][1]["HtmlTag"], "Gene")
03262         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][1]["Priority"], "128")
03263         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][2]["DbTo"], "geo")
03264         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][2]["LinkName"], "pubmed_geo")
03265         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][2]["MenuTag"], "GEO Profile Links")
03266         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][2]["HtmlTag"], "GEO Profiles")
03267         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][2]["Priority"], "170")
03268         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][3]["DbTo"], "homologene")
03269         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][3]["LinkName"], "pubmed_homologene")
03270         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][3]["MenuTag"], "HomoloGene Links")
03271         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][3]["HtmlTag"], "HomoloGene")
03272         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][3]["Priority"], "128")
03273         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][4]["DbTo"], "nuccore")
03274         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][4]["LinkName"], "pubmed_nuccore")
03275         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][4]["MenuTag"], "CoreNucleotide Links")
03276         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][4]["HtmlTag"], "CoreNucleotide")
03277         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][4]["Priority"], "128")
03278         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][5]["DbTo"], "nuccore")
03279         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][5]["LinkName"], "pubmed_nuccore_refseq")
03280         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][5]["MenuTag"], "CoreNucleotide (RefSeq) Links")
03281         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][5]["HtmlTag"], "CoreNucleotide (RefSeq)")
03282         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][5]["Priority"], "128")
03283         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][6]["DbTo"], "nucleotide")
03284         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][6]["LinkName"], "pubmed_nucleotide")
03285         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][6]["MenuTag"], "Nucleotide Links")
03286         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][6]["HtmlTag"], "Nucleotide")
03287         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][6]["Priority"], "135")
03288         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][7]["DbTo"], "nucleotide")
03289         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][7]["LinkName"], "pubmed_nucleotide_refseq")
03290         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][7]["MenuTag"], "Nucleotide (RefSeq) Links")
03291         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][7]["HtmlTag"], "Nucleotide (RefSeq)")
03292         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][7]["Priority"], "128")
03293         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][8]["DbTo"], "pcsubstance")
03294         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][8]["LinkName"], "pubmed_pcsubstance_mesh")
03295         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][8]["MenuTag"], "Substance (MeSH Keyword)")
03296         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][8]["HtmlTag"], "Substance (MeSH Keyword)")
03297         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][8]["Priority"], "128")
03298         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][9]["DbTo"], "pmc")
03299         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][9]["LinkName"], "pubmed_pmc_refs")
03300         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][9]["MenuTag"], "Cited in PMC")
03301         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][9]["HtmlTag"], "Cited in PMC")
03302         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][9]["Url"], "http://www.pubmedcentral.gov/tocrender.fcgi?action=cited&tool=pubmed&pubmedid=<@UID@>")
03303         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][9]["Priority"], "180")
03304         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][10]["DbTo"], "protein")
03305         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][10]["LinkName"], "pubmed_protein")
03306         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][10]["MenuTag"], "Protein Links")
03307         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][10]["HtmlTag"], "Protein")
03308         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][10]["Priority"], "140")
03309         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][11]["DbTo"], "protein")
03310         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][11]["LinkName"], "pubmed_protein_refseq")
03311         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][11]["MenuTag"], "Protein (RefSeq) Links")
03312         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][11]["HtmlTag"], "Protein (RefSeq)")
03313         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][11]["Priority"], "128")
03314         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][12]["DbTo"], "pubmed")
03315         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][12]["LinkName"], "pubmed_pubmed")
03316         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][12]["MenuTag"], "Related Articles")
03317         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][12]["HtmlTag"], "Related Articles")
03318         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][12]["Priority"], "1")
03319         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][13]["DbTo"], "taxonomy")
03320         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][13]["LinkName"], "pubmed_taxonomy_entrez")
03321         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][13]["MenuTag"], "Taxonomy via GenBank")
03322         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][13]["HtmlTag"], "Taxonomy via GenBank")
03323         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][13]["Priority"], "128")
03324         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][14]["DbTo"], "unigene")
03325         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][14]["LinkName"], "pubmed_unigene")
03326         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][14]["MenuTag"], "UniGene Links")
03327         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][14]["HtmlTag"], "UniGene")
03328         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][14]["Priority"], "128")
03329         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][15]["DbTo"], "LinkOut")
03330         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][15]["LinkName"], "ExternalLink")
03331         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][15]["MenuTag"], "LinkOut")
03332         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][15]["HtmlTag"], "LinkOut")
03333         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][0]["LinkInfo"][15]["Priority"], "255")
03334         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["Id"], "11748140")
03335         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][0]["DbTo"], "books")
03336         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][0]["LinkName"], "pubmed_books_refs")
03337         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][0]["MenuTag"], "Cited in Books")
03338         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][0]["HtmlTag"], "Cited in Books")
03339         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][0]["Priority"], "185")
03340         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][1]["DbTo"], "gene")
03341         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][1]["LinkName"], "pubmed_gene")
03342         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][1]["MenuTag"], "Gene Links")
03343         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][1]["HtmlTag"], "Gene")
03344         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][1]["Priority"], "128")
03345         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][2]["DbTo"], "geo")
03346         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][2]["LinkName"], "pubmed_geo")
03347         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][2]["MenuTag"], "GEO Profile Links")
03348         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][2]["HtmlTag"], "GEO Profiles")
03349         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][2]["Priority"], "170")
03350         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][3]["DbTo"], "nuccore")
03351         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][3]["LinkName"], "pubmed_nuccore")
03352         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][3]["MenuTag"], "CoreNucleotide Links")
03353         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][3]["HtmlTag"], "CoreNucleotide")
03354         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][3]["Priority"], "128")
03355         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][4]["DbTo"], "nuccore")
03356         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][4]["LinkName"], "pubmed_nuccore_refseq")
03357         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][4]["MenuTag"], "CoreNucleotide (RefSeq) Links")
03358         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][4]["HtmlTag"], "CoreNucleotide (RefSeq)")
03359         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][4]["Priority"], "128")
03360         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][5]["DbTo"], "nucleotide")
03361         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][5]["LinkName"], "pubmed_nucleotide")
03362         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][5]["MenuTag"], "Nucleotide Links")
03363         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][5]["HtmlTag"], "Nucleotide")
03364         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][5]["Priority"], "135")
03365         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][6]["DbTo"], "nucleotide")
03366         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][6]["LinkName"], "pubmed_nucleotide_refseq")
03367         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][6]["MenuTag"], "Nucleotide (RefSeq) Links")
03368         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][6]["HtmlTag"], "Nucleotide (RefSeq)")
03369         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][6]["Priority"], "128")
03370         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][7]["DbTo"], "pmc")
03371         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][7]["LinkName"], "pubmed_pmc_refs")
03372         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][7]["MenuTag"], "Cited in PMC")
03373         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][7]["HtmlTag"], "Cited in PMC")
03374         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][7]["Url"], "http://www.pubmedcentral.gov/tocrender.fcgi?action=cited&tool=pubmed&pubmedid=<@UID@>")
03375         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][7]["Priority"], "180")
03376         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][8]["DbTo"], "protein")
03377         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][8]["LinkName"], "pubmed_protein")
03378         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][8]["MenuTag"], "Protein Links")
03379         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][8]["HtmlTag"], "Protein")
03380         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][8]["Priority"], "140")
03381         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][9]["DbTo"], "protein")
03382         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][9]["LinkName"], "pubmed_protein_refseq")
03383         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][9]["MenuTag"], "Protein (RefSeq) Links")
03384         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][9]["HtmlTag"], "Protein (RefSeq)")
03385         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][9]["Priority"], "128")
03386         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][10]["DbTo"], "pubmed")
03387         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][10]["LinkName"], "pubmed_pubmed")
03388         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][10]["MenuTag"], "Related Articles")
03389         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][10]["HtmlTag"], "Related Articles")
03390         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][10]["Priority"], "1")
03391         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][11]["DbTo"], "taxonomy")
03392         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][11]["LinkName"], "pubmed_taxonomy_entrez")
03393         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][11]["MenuTag"], "Taxonomy via GenBank")
03394         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][11]["HtmlTag"], "Taxonomy via GenBank")
03395         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][11]["Priority"], "128")
03396         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][12]["DbTo"], "unigene")
03397         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][12]["LinkName"], "pubmed_unigene")
03398         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][12]["MenuTag"], "UniGene Links")
03399         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][12]["HtmlTag"], "UniGene")
03400         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][12]["Priority"], "128")
03401         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][13]["DbTo"], "LinkOut")
03402         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][13]["LinkName"], "ExternalLink")
03403         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][13]["MenuTag"], "LinkOut")
03404         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][13]["HtmlTag"], "LinkOut")
03405         self.assertEqual(record[0]["IdCheckList"]["IdLinkSet"][1]["LinkInfo"][13]["Priority"], "255")
03406 

Here is the call graph for this function:

Test parsing pubmed links returned by ELink (sixth test)

Definition at line 3407 of file test_Entrez.py.

03407 
03408     def test_pubmed6(self):
03409         '''Test parsing pubmed links returned by ELink (sixth test)
03410         '''
03411         # Check for the existence of a Related Articles link for PMIDs
03412         # 0611131, 111645 and 12068369
03413         # To create the XML file, use
03414         # >>> Bio.Entrez.elink(dbfrom="pubmed", id="10611131,111645",
03415         #                      id="12068369", cmd="ncheck")
03416         handle = open('Entrez/elink8.xml', "rb")
03417         record = Entrez.read(handle)
03418         handle.close()
03419         self.assertEqual(len(record), 1)
03420         self.assertEqual(record[0]["DbFrom"], "pubmed")
03421         self.assertEqual(len(record[0]["IdCheckList"]), 2)
03422         self.assertEqual(len(record[0]["IdCheckList"]["Id"]), 1)
03423         self.assertEqual(record[0]["IdCheckList"]["Id"][0], "12068369")
03424         self.assertEqual(len(record[0]["IdCheckList"]["Id"][0].attributes), 1)
03425         self.assertEqual(record[0]["IdCheckList"]["Id"][0].attributes["HasNeighbor"], "Y")

Here is the call graph for this function:


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