'Tests that titles are escaped correctly in RSS feeds.'

def test_title_escaping(self):

    response = self.client.get('/syndication/rss2/')
    doc = minidom.parseString(response.content)
    for item in doc.getElementsByTagName('item'):
        link = item.getElementsByTagName('link')[0]
        if (link.firstChild.wholeText == 'http://example.com/blog/4/'):
            title = item.getElementsByTagName('title')[0]
            self.assertEquals(title.firstChild.wholeText, u'A    &amp;    B    &lt;    C    &gt;    D')
