'This is for testing that everything continues to work even when the
cache-keys are hashed.'

def test_set_get_placeholder_cache_with_long_prefix(self):

    with self.settings(CMS_CACHE_PREFIX=('super_lengthy_prefix' * 9)):
        en_crazy_request = self.get_request('/en/')
        en_crazy_request.META['HTTP_COUNTRY_CODE'] = ('US' * 40)
        en_crazy_context = Context({'request': en_crazy_request})
        en_crazy_content = self.placeholder.render(en_crazy_context, 350, lang='en')
        set_placeholder_cache(self.placeholder, 'en', 1, en_crazy_content, en_crazy_request)
        crazy_cache_key = _get_placeholder_cache_key(self.placeholder, 'en', 1, en_crazy_request)
        key_length = len(crazy_cache_key)
        self.assertTrue((('render_placeholder' not in crazy_cache_key) and (key_length == 213)))
        cached_en_crazy_content = get_placeholder_cache(self.placeholder, 'en', 1, en_crazy_request)
        self.assertEqual(en_crazy_content, cached_en_crazy_content)
