'Get account information, and also verify that the account exists.
:param account: name of the account to get the info for
:param req: caller\'s HTTP request context object (optional)
:returns: tuple of (account partition, account nodes, container_count)
or (None, None, None) if it does not exist'

def account_info(self, account, req=None):

    (partition, nodes) = self.app.account_ring.get_nodes(account)
    if req:
        env = getattr(req, 'environ', {})
    else:
        env = {}
    env.setdefault('swift.infocache', {})
    path_env = env.copy()
    path_env['PATH_INFO'] = ('/v1/%s' % (account,))
    info = get_account_info(path_env, self.app)
    if ((not info) or (not is_success(info['status'])) or (not info.get('account_really_exists', True))):
        return (None, None, None)
    container_count = info['container_count']
    return (partition, nodes, container_count)
