def setUpClass(cls):
     cls.listener = EventListener()
     cls.saved_subscribers = monitoring._SUBSCRIBERS
     monitoring.subscribe(cls.listener)
     super(TestAllScenarios, cls).setUpClass()
 def setUpClass(cls):
     cls.listener = EventListener()
     cls.saved_subscribers = monitoring._SUBSCRIBERS
     monitoring.subscribe(cls.listener)
     super(TestCommandMonitoring, cls).setUpClass()