def test_no_unnecessary_save_eager(self):
        self.assertFalse(state.need_saving())
        state['bla'] = 'bla'
        self.assertTrue(state.need_saving())

        with tempfile.NamedTemporaryFile() as temp:
            state.save(temp.name)
            self.assertFalse(state.need_saving())
            state.reset_instance()
            self.assertFalse(state.need_saving())
            state.load(temp.name, lazy=False)
            self.assertFalse(state.need_saving())
            self.assertEqual(state['bla'], 'bla')
            self.assertFalse(state.need_saving())
Test saving the state does not save just after loading eagerly
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_no_unnecessary_save_eager