def main(config): config = getConfig(config) alert = NewAlerts() alert.log = Log() alert.run(config)
def test_run_alert(self): config = self.__getConfig("system-config-new.json") alert = NewAlerts() alert.log = Log() self.assertTrue(alert.run(config))