

def test_write_and_readback(self):
    'Write and read back a preset\n\n        '
    preset = {
        presets.TYPE: '1D',
    }
    preset = CSP_HELPER.complete_preset(preset)
    presets.write_preset(self.preset_path, preset)
    back_preset = presets.read_preset(self.preset_path)
    expression = set(back_preset).issubset(set(preset))
    self.assert_(expression, 'Something went wrong in preset write and read :\nWrite preset:\n{0}\nRead one:\n{1}'.format(preset, self))

dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/preset_test.py GeneralTest.test_write_and_readback/VarMisuse@83/172 `back_preset`->`self`