def test_get_section_lazy2(self):
        state['a.b'] = 12

        self.assertIn('a.b', state)
        self.assertEqual(state['a.b'], 12)

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

            state.load(temp.name)

            self.assertIn('a.b', state)
            self.assertEqual(state['a.b'], 12)
Test getting directly a section of the state lazily
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_get_section_lazy2