コード例 #1
0
 def test_find_thread_stack_not_found(self):
     found_stack = message_broker._find_thread_stack(0)
     self.assertEqual(found_stack, None)
コード例 #2
0
 def test_find_thread_stack_found(self):
     id, stack = sys._current_frames().items()[0]
     found_stack = message_broker._find_thread_stack(id)
     self.assertNotEqual(found_stack, None)