def test_max_age_expiration(self):
        response = HttpResponse()
        response.set_cookie('max_age', max_age=10)
        max_age_cookie = response.cookies['max_age']
        self.assertEqual(max_age_cookie['max-age'], 10)
        self.assertEqual(max_age_cookie['expires'], cookie_date(time.time()+10))
Return object based on old ID.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/tests/regressiontests/requests/tests.py/RequestsTests.test_max_age_expiration--crossover with--dataset/ETHPy150Open allegro/ralph/src/ralph/data_importer/models.py/ImportedObjects.get_object_from_old_pk