def test_map_index(self):
        dbmap = self.to_map(["CREATE TABLE t1 (c1 integer, c2 text)",
                             "CREATE UNIQUE INDEX t1_idx ON t1 (c1) "
                             "TABLESPACE ts1"])
        expmap = {'t1_idx': {'keys': ['c1'], 'tablespace': 'ts1',
                             'unique': True}}
        assert dbmap['schema public']['table t1']['indexes'] == expmap
Function to return the list of sections for the given series
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_tablespace.py/ToMapTestCase.test_map_index--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/survey_getAllSectionsForSeries