def test_rfc2822_date(self):
        self.assertEqual(
            feedgenerator.rfc2822_date(datetime.datetime(2008, 11, 14, 13, 37, 0)),
            "Fri, 14 Nov 2008 13:37:00 -0000"
        )
Test rfc2822_date() correctly formats datetime objects.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/utils/feedgenerator.py/FeedgeneratorTest.test_rfc2822_date