def METHOD_NAME(self):
    """Test the behaviour of cache_time"""
    uncached_page = Page.objects.create(name="not cached", slug="no_cache",
                                        content="*aa*")
    cached_page = Page.objects.create(name="Cached Page", slug="cached",
                                      content="*bb*",
                                      cache_time=100)
    # We use a memory cache here to actually check caching behaviour
    with override_settings(CACHES={"default": {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'},
                                   "wafer_cache": {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
                                                   'LOCATION': 'test_cache'}}):
        cache = caches['wafer_cache']
        result = uncached_page.cached_render()
        self.assertEqual(result, uncached_page.content.rendered)
        self.assertEqual(cache.get(uncached_page._cache_key()), None)
        result = cached_page.cached_render()
        self.assertEqual(result, cached_page.content.rendered)
        self.assertEqual(cache.get(cached_page._cache_key()), result)
        # Check that updating the page content invalidates the cache
        cached_page.content = '*cc*'
        cached_page.save()
        self.assertEqual(cache.get(cached_page._cache_key()), None)