def test_find_thread_stack_not_found(self): found_stack = dump_render_tree_thread.find_thread_stack(0) self.assertEqual(found_stack, None)
def test_find_thread_stack_found(self): id, stack = sys._current_frames().items()[0] found_stack = dump_render_tree_thread.find_thread_stack(id) self.assertNotEqual(found_stack, None)