def test_naive_datetime_conversion(self):
    '\n        Test that datetimes are correctly converted to the local time zone.\n        '
    response = self.client.get('/syndication/naive-dates/')
    doc = minidom.parseString(response.content)
    updated = doc.getElementsByTagName('updated')[0].firstChild.wholeText
    d = Entry.objects.latest('published').published
    ltz = tzinfo.LocalTimezone(d)
    latest = rfc3339_date(d.replace(tzinfo=ltz))
    self.assertEqual(updated, latest)
Test that datetimes are correctly converted to the local time zone.
def test_naive_datetime_conversion(self):
    '\n        \n        '
    response = self.client.get('/syndication/naive-dates/')
    doc = minidom.parseString(response.content)
    updated = doc.getElementsByTagName('updated')[0].firstChild.wholeText
    d = Entry.objects.latest('published').published
    ltz = tzinfo.LocalTimezone(d)
    latest = rfc3339_date(d.replace(tzinfo=ltz))
    self.assertEqual(updated, latest)