def test_write_and_readback(self):
        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 :\n"
                      "Write preset:\n{0}\nRead one:\n{1}"
                      ).format(preset, back_preset))
Returns the number of axes in a tensor, as an integer.
dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/preset_test.py/GeneralTest.test_write_and_readback--crossover with--dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/ndim