'Cookie will expire when an distant expiration time is provided'

def test_far_expiration(self):

    response = HttpResponse()
    response.set_cookie('datetime', expires=datetime(2028, 1, 1, 4, 5, 6))
    datetime_cookie = response.cookies['datetime']
    self.assertEqual(datetime_cookie['expires'], 'Sat,    01-Jan-2028    04:05:06    GMT')
