def test_load_nonexisting_lazy(self):
        temp = tempfile.NamedTemporaryFile(delete=False)
        os.remove(temp.name)
        self.assertRaises(IOError, state.load, temp.name, lazy=True)
Test loading a state that does not exist with error flag default
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestBasicState.test_load_nonexisting_lazy