'Test rfc2822_date() correctly formats datetime objects with tzinfo.'

def test_rfc2822_date_with_timezone(self):

    self.assertEqual(feedgenerator.rfc2822_date(datetime.datetime(2008, 11, 14, 13, 37, 0, tzinfo=tzinfo.FixedOffset(datetime.timedelta(minutes=60)))), u'Fri,    14    Nov    2008    13:37:00    +0100')
