def mappings(self, year=None):
        mappings = []
        for yr, elecs in self.elections(year).items():
            mappings.extend(self._build_metadata(yr, elecs))
        return mappings
Tests that writes and reads macdefaults
dataset/ETHPy150Open openelections/openelections-core/openelex/us/az/datasource.py/Datasource.mappings--crossover with--dataset/ETHPy150Open saltstack/salt/tests/integration/modules/mac_defaults.py/MacDefaultsModuleTest.test_macdefaults_write_read