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

def test_far_expiration(self):

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