def test_template_context_feed(self):
    '\n        Test that custom context data can be passed to templates for title\n        and description.\n        '
    response = self.client.get('/syndication/template_context/')
    doc = minidom.parseString(response.content)
    feed = doc.getElementsByTagName('rss')[0]
    chan = feed.getElementsByTagName('channel')[0]
    items = chan.getElementsByTagName('item')
    self.assertChildNodeContent(items[0], {'title': 'My first entry (foo is bar)', 'description': 'My first entry (foo is bar)'})
Test that custom context data can be passed to templates for title
and description.
def test_template_context_feed(self):
    '\n        Test that custom context data can be passed to templates for title\n        and description.\n        '
    response = self.client.get('/syndication/template_context/')
    doc = minidom.parseString(response.content)
    feed = doc.getElementsByTagName('rss')[0]
    chan = feed.getElementsByTagName('channel')[0]
    items = chan.getElementsByTagName('item')
    self.assertChildNodeContent(items[0], {'title': 'My first entry (foo is bar)', 'description': 'My first entry (foo is bar)'})