#NEWLINE# def test_geofeed_atom( self ) : #NEWLINE# #INDENT# 'Testing geographic feeds using GeoRSS over Atom.' #NEWLINE# doc1 = minidom . parseString ( self . client . get ( '/feeds/atom1/' ) . content ) #NEWLINE# doc2 = minidom . parseString ( self . client . get ( '/feeds/atom2/' ) . content ) #NEWLINE# ( feed1 , feed2 ) = ( doc1 . firstChild , doc2 . firstChild ) #NEWLINE# self . assertChildNodes ( feed2 , [ 'title' , 'link' , 'id' , 'updated' , 'entry' , 'georss:box' ] ) #NEWLINE# for feed in [ feed1 , feed2 ] : #NEWLINE# #INDENT# self . assertEqual ( feed . getAttribute ( 'xmlns:georss' ) , 'http://www.georss.org/georss' ) #NEWLINE# entries = feed . getElementsByTagName ( 'entry' ) #NEWLINE# self . assertEqual ( len ( feed ) , City . objects . count ( ) ) #NEWLINE# for entry in entries : #NEWLINE# #INDENT# self . assertChildNodes ( entry , [ 'title' , 'link' , 'id' , 'summary' , 'georss:point' ] )