def testTrySubscribeFail(self, init_sub, get_class, get_type, ns, get_param):
        tm = TriggerMonitor() 
        tm.load_config()
          
        assert tm.try_subscribe("var1") == False

        init_sub.assert_not_called()
    def testTrySubscribeSucceed(self, init_sub, get_class, get_type, ns, get_param):
        tm = TriggerMonitor() 
        tm.load_config()
          
        assert tm.try_subscribe("var1") == True

        init_sub.assert_called_once()
        assert init_sub.call_args[0][0] == 'var1'