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