'Test get_parents in a case that causes it to call update_location_tree.'

def testULT4_get_parents(self):

    table = self.table
    gis = current.gis
    L0_id = table.insert(level='L0', name='s3gis.testULT4.L0', lat=10.0, lon=(-10.0))
    L1_id = table.insert(level='L1', name='s3gis.testULT4.L1', parent=L0_id)
    L3_id = table.insert(level='L3', name='s3gis.testULT4.L3', parent=L1_id)
    specific_id = table.insert(name='s3gis.testULT4.specific', parent=L3_id)
    parents = gis.get_parents(specific_id)
    expected_parents = [L0_id, L1_id, L3_id]
    for parent in parents:
        parent_id = parent.id
        self.assertIn(parent_id, expected_parents)
        expected_parents.remove(parent_id)
    self.assertEqual(len(expected_parents), 0)
