'Test that the all locations update does not get a "too much recursion" error.'

def testULT3_update_location_tree_all_locations_no_infinite_recursion(self):

    table = self.table
    L0_id = table.insert(level='L0', name='s3gis.testULT3.L0', lat=10.0, lon=(-10.0))
    L1_id = table.insert(level='L1', name='s3gis.testULT3.L1', parent=L0_id)
    L3_id = table.insert(level='L3', name='s3gis.testULT3.L3', parent=L1_id)
    specific_id = table.insert(name='s3gis.testULT3.specific', parent=L3_id)
    log_recorder = current.log.recorder()
    current.gis.update_location_tree()
    log_messages = log_recorder.stop()
    self.assertNotIn('too    much    recursion', log_messages)
