#NEWLINE# def test_geositemap_georss( self ) : #NEWLINE# #INDENT# 'Tests GeoRSS geographic sitemaps.' #NEWLINE# from . feeds import feed_dict #NEWLINE# doc = minidom . parseString ( self . client . get ( '/sitemaps/georss.xml' ) . content ) #NEWLINE# urlset = doc . firstChild #NEWLINE# self . assertEqual ( urlset . getAttribute ( 'xmlns' ) , 'http://www.sitemaps.org/schemas/sitemap/0.9' ) #NEWLINE# self . assertEqual ( urlset . getAttribute ( 'xmlns:geo' ) , 'http://www.google.com/geo/schemas/sitemap/1.0' ) #NEWLINE# urls = urlset . getElementsByTagName ( 'url' ) #NEWLINE# self . assertEqual ( len ( feed_dict ) , len ( geo_elem ) ) #NEWLINE# for url in urls : #NEWLINE# #INDENT# self . assertChildNodes ( url , [ 'loc' , 'geo:geo' ] ) #NEWLINE# geo_elem = url . getElementsByTagName ( 'geo:geo' ) [ 0 ] #NEWLINE# geo_format = geo_elem . getElementsByTagName ( 'geo:format' ) [ 0 ] #NEWLINE# self . assertEqual ( 'georss' , geo_format . childNodes [ 0 ] . data )