'Test if the \'isPermaLink\' attribute of <guid> element of an item
in the RSS feed is \'true\'.'

def test_rss2_feed_guid_permalink_true(self):

    response = self.client.get(u'/syndication/rss2/guid_ispermalink_true/')
    doc = minidom.parseString(response.content)
    chan = doc.getElementsByTagName(u'rss')[0].getElementsByTagName(u'channel')[0]
    items = chan.getElementsByTagName(u'item')
    for item in items:
        self.assertEqual(item.getElementsByTagName(u'guid')[0].attributes.get(u'isPermaLink').value, u'true')
