def test_date_with_year_29_feb_leap_year(self):
     self.assertEqual(date_with_year(2016, date(year=4, month=2, day=29)),
                      date(year=2016, month=2, day=29))
 def test_date_with_year_29_feb_not_leap_year(self):
     self.assertEqual(date_with_year(2015, date(year=4, month=2, day=29)),
                      None)
 def test_date_with_year(self):
     self.assertEqual(date_with_year(2015, date(year=4, month=2, day=22)),
                      date(year=2015, month=2, day=22))