'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_keys(self):

    self.assertRaises(Exception, self.cache.set, u'key    with    spaces', u'value')
    self.assertRaises(Exception, self.cache.set, (u'a' * 251), u'value')
