'A simple test for Rss201rev2Feed feeds generated by the deprecated
system.'

def test_rss_feed(self):

    response = self.client.get('/syndication/depr-feeds/rss/')
    doc = minidom.parseString(response.content)
    feed = doc.getElementsByTagName('rss')[0]
    self.assertEqual(feed.getAttribute('version'), '2.0')
    chan = feed.getElementsByTagName('channel')[0]
    self.assertChildNodes(chan, ['title', 'link', 'description', 'language', 'lastBuildDate', 'item', 'atom:link'])
    items = chan.getElementsByTagName('item')
    self.assertEqual(len(items), Entry.objects.count())
