def id_name_checker(self):
name2id = Mthread.map_thread_names()<EOL>for thread_id, f in list(sys._current_frames().items()):<EOL><INDENT>self.assertEqual(thread_id,<EOL>name2id[Mthread.id2thread_name(thread_id)])<EOL>self.assertNotEqual(f, Mthread.find_debugged_frame(f))<EOL>pass<EOL><DEDENT>
Helper for testing map_thread_names and id2thread