def test_in_reactor_thread(self):
        myreactor = FakeReactor()
        c = EventLoop(lambda: myreactor, lambda f, g: None)
        c.no_setup()

        calls = []

        @c.in_reactor
        def func(reactor, a, b, c):
            self.assertIdentical(reactor, myreactor)
            self.assertTrue(reactor.in_call_from_thread)
            calls.append((a, b, c))

        func(1, 2, c=3)
        self.assertEqual(calls, [(1, 2, 3)])
Test that the get_*_display() methods are added to the model instances.
dataset/ETHPy150Open itamarst/crochet/crochet/tests/test_api.py/InReactorTests.test_in_reactor_thread--crossover with--dataset/ETHPy150Open django/django-localflavor/tests/test_us/tests.py/USLocalFlavorTests.test_get_display_methods