'Handle cache key creation correctly, see #17861.'

def test_cache_key_memcache_validation(self):

    name = ((u'/some    crazy/long    filename/    with    spaces    Here    and    ?#%#$/other/stuff/some    crazy/long    filename/    with    spaces    Here    and    ?#%#$/other/stuff/some    crazy/long    filename/    with    spaces    Here    and    ?#%#$/other/stuff/some    crazy/long    filename/    with    spaces    Here    and    ?#%#$/other/stuff/some    crazy/long    filename/    with    spaces    Here    and    ?#%#$/other/stuff/some    crazy/' + u'\x16') + u'\xb4')
    cache_key = storage.staticfiles_storage.cache_key(name)
    cache_validator = BaseCache({})
    cache_validator.validate_key(cache_key)
    self.assertEqual(cache_key, u'staticfiles:821ea71ef36f95b3922a77f7364670e7')
