'Test that datetimes are correctly converted to the local time zone.'

def test_naive_datetime_conversion(self):

    response = self.client.get(u'/syndication/naive-dates/')
    doc = minidom.parseString(response.content)
    updated = doc.getElementsByTagName(u'updated')[0].firstChild.wholeText
    d = Entry.objects.latest(u'date').date
    ltz = tzinfo.LocalTimezone(d)
    latest = rfc3339_date(d.replace(tzinfo=ltz))
    self.assertEqual(updated, latest)
