'On memcached, we don\'t introduce a duplicate key validation
step (for speed reasons), we just let the memcached API
library raise its own exception on bad keys. Refs #6447.
In order to be memcached-API-library agnostic, we only assert
that a generic exception of some kind is raised.'

def test_invalid_key_characters(self):

    with self.assertRaises(Exception):
        cache.set('key    with    spaces', 'value')
