def METHOD_NAME(self):
    # some extra thread-state tests driven via _testcapi
    def target():
        idents = []
        def callback():
            idents.append(thread.get_ident())
        _testcapi._test_thread_state(callback)
        a = b = callback
        time.sleep(1)
        # Check our main thread is in the list exactly 3 times.
        self.assertEqual(idents.count(thread.get_ident()), 3,
                         "Couldn't find main thread correctly in the list")
    target()
    t = threading.Thread(target=target)
    t.start()
    t.join()