def test_reactor_thread_disallowed(self):
        self.patch(threadable, "isInIOThread", lambda: True)
        f = self.make_wrapped_function()
        self.assertRaises(RuntimeError, f, None)
Functions decorated with the wait decorator cannot be called from the
dataset/ETHPy150Open itamarst/crochet/crochet/tests/test_api.py/WaitTestsMixin.test_reactor_thread_disallowed