'Convenience method so that we can test authenticated requests.'

def get_scoped_token(self, tenant_id=None):

    if (not tenant_id):
        tenant_id = self.tenant_bar['id']
    return self._get_token({'auth': {'passwordCredentials': {'username': self.user_foo['name'], 'password': self.user_foo['password']}, 'tenantId': tenant_id}})
