#NEWLINE# def test_template_feed( self ) : #NEWLINE# #INDENT# '\n        Test that the item title and description can be overridden with\n        templates.\n        ' #NEWLINE# response = self . client . get ( '/syndication/template/' ) #NEWLINE# doc = minidom . parseString ( response . content ) #NEWLINE# feed = doc . getElementsByTagName ( 'rss' ) [ 0 ] #NEWLINE# chan = feed . getElementsByTagName ( 'channel' ) [ 0 ] #NEWLINE# items = chan . getElementsByTagName ( 'item' ) #NEWLINE# self . assertChildNodeContent ( items [ 0 ] , { #NEWLINE# #INDENT# 'title' : 'Title in your templates: My first entry\n' , #NEWLINE# 'description' : 'Description in your templates: My first entry\n' , #NEWLINE# 'link' : 'http://example.com/blog/1/' , #NEWLINE# #UNINDENT# } )