#NEWLINE# def test_extract_uris( self ) : #NEWLINE# #INDENT# identifiers = [ 'doi:10.whateverwhatever' , 'http://alloutofbubblegum.com' , 'http://viewcontent.cgi/iamacoolpdf' , 'http://GETTHETABLES.com' , 'Vahedifard, F. et al. (2013). G??otechnique 63, No. 6, 451???462 [http://dx.doi.org/10.1680/geot.11.P.130] ' , 'I am a bunch of text but I also have a doi:10.10.thisisarealdoi' ] #NEWLINE# uri_dict = helpers . oai_process_uris ( identifiers ) #NEWLINE# assert ( uri_dict == { #NEWLINE# #INDENT# 'canonicalUri' : 'http://alloutofbubblegum.com' , #NEWLINE# 'objectUris' : [ 'http://dx.doi.org/10.whateverwhatever' , 'http://dx.doi.org/10.1680/geot.11.P.130' , 'http://dx.doi.org/10.10.thisisarealdoi' , 'http://viewcontent.cgi/iamacoolpdf' ] , #NEWLINE# 'providerUris' : [ 'http://alloutofbubblegum.com' , 'http://GETTHETABLES.com' ] , #NEWLINE# #UNINDENT# } )