示例#1
0
 def test_singleton(self):
     """Ensure we are delivering a singleton for RequirementsHandler"""
     second = tools.MainLoop()
     self.assertEqual(self.mainloop_object, second)
示例#2
0
 def setUp(self):
     super().setUp()
     self.mainloop_object = tools.MainLoop()
     self.mainloop_thread = None
     self.function_thread = None
     self.saved_stderr = sys.stderr