def test_need_saving(self):
        self._setup_basic_state()
        self.assertTrue(state.need_saving())

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

        self.assertFalse(state.need_saving())
        state['list'] = 'foo2'
        self.assertTrue(state.need_saving())
Test the state.need_saving method
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_need_saving