'Return list of locations where the user has access to.
:return: the list of :class:`NodeLocation` available for the current
user
:rtype:  ``list`` of :class:`NodeLocation`'

def list_locations(self):

    return list(self.connection.cache['locations'].keys())
