def test_save_load_file_keys(self):
        state['normal_key'] = 1
        state['dashed-key'] = 3
        state['dotted.key'] = 4

        with tempfile.NamedTemporaryFile() as temp:
            state.save(temp.name)
            state.reset_instance()

            state.load(temp.name, lazy=False)

            # Make sure the keys are there
            for key in ['normal_key',
                        'dashed-key',
                        'dotted.key']:
                self.assertIn(key, state)
            # Get loaded data
Test saving file and reloading yields identical keys
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_save_load_file_keys