def test_save_raises(self):
        state['a'] = 12

        with tempfile.NamedTemporaryFile() as temp:
            os.chmod(temp.name, 0)
            self.assertRaises(IOError, state.save, temp.name)
            self.assertEqual(os.stat(temp.name).st_size, 0)
Calls the Window URI handler for a request and returns the
dataset/ETHPy150Open duerrp/pyexperiment/tests/test_state.py/TestStateIO.test_save_raises--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/terminal/gwt/server/abstract_communication_manager.py/AbstractCommunicationManager.handleURI