def test_load_broken(self):
        state['a'] = 12
        with tempfile.NamedTemporaryFile() as temp:
            state.save(temp.name)
            state.load(temp.name)
            state.get_instance().filename = None
            self.assertRaises(RuntimeError, lambda: state['a'])
Put together a message that will be sent over websockets.
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_load_broken--crossover with--dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/blueprints/stream/broadcast.py/Broadcast.message