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

def test_title_escaping(self):

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