def test_saving_deleted_value(self):
        state['a'] = 12
        with tempfile.NamedTemporaryFile() as temp:
            state.save(temp.name)
            state.reset_instance()
            self.assertNotIn('a', state)
            state.load(temp.name)
            self.assertIn('a', state)
            del state['a']

            self.assertNotIn('a', state)
            state.save(temp.name)
            state.reset_instance()
            self.assertNotIn('a', state)
            state.load(temp.name)
            self.assertNotIn('a', state)
Test saving really deletes entry
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_saving_deleted_value