def test_strftime_date_under_1900_object(self):
     expected = "Thu, 03 Jan 1765 00:00:00 +0000"
     result = dateutils.strftime("%a, %d %b %Y %H:%M:%S +0000", datetime.date(1765, 1, 3))
     self.assertEqual(expected, result)
 def test_strftime_date_under_1900(self):
     test_date = "3.1.1765"
     expected = "Thu, 03 Jan 1765 00:00:00 +0000"
     result = dateutils.strftime("%a, %d %b %Y %H:%M:%S +0000", strptime(test_date, "%d.%m.%Y"))
     self.assertEqual(expected, result)
 def test_strftime_date_over_1900_object(self):
     expected = "Thu, 12 Mar 1908 00:00:00 +0000"
     result = dateutils.strftime("%a, %d %b %Y %H:%M:%S +0000", datetime.date(1908, 3, 12))
     self.assertEqual(expected, result)
 def test_strftime_date_over_1900(self):
     test_date = "12.03.1908"
     expected = "Thu, 12 Mar 1908 00:00:00 +0000"
     result = dateutils.strftime("%a, %d %b %Y %H:%M:%S +0000",
                                 strptime(test_date, "%d.%m.%Y"))
     self.assertEqual(expected, result)