def test_run_in_reactor_wrapper(self):
        wrapped = [False]

        def fake_run_in_reactor(function):
            def wrapper(*args, **kwargs):
                wrapped[0] = True
                result = function(*args, **kwargs)
                wrapped[0] = False
                return result
            return wrapper

        myreactor = FakeReactor()
        c = EventLoop(lambda: myreactor, lambda f, g: None)
        c.no_setup()
        c.run_in_reactor = fake_run_in_reactor


        @c.in_reactor
        def func(reactor):
            self.assertTrue(wrapped[0])
            return 17

        result = func()
        self.assertFalse(wrapped[0])
        self.assertEqual(result, 17)
Generates the sql used for the limit clause of a Query
dataset/ETHPy150Open itamarst/crochet/crochet/tests/test_api.py/InReactorTests.test_run_in_reactor_wrapper--crossover with--dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/query.py/Limit.get_sql