'Setup named token in memcache
:param token_name: name of token
:param account: example: acct
:param account_user: example: acct_joe
:param groups: example: .admin'

def _setup_user_and_token(self, token_name, account, account_user, groups):

    self.test_auth.users[account_user] = dict(groups=[groups])
    account_id = ('AUTH_%s' % account)
    cache_key = ('AUTH_/token/%s' % token_name)
    cache_entry = ((time() + 3600), self.test_auth._get_user_groups(account, account_user, account_id))
    self.req.environ['swift.cache'].set(cache_key, cache_entry)
