Exemple #1
0
 def test_alert_files(self):
     alert_file_path = os.path.join(self.config["alert_file_dir"],
                                    "test_alert")
     create_alert_file(self.pghoard.config, "test_alert")
     assert os.path.exists(alert_file_path) is True
     delete_alert_file(self.pghoard.config, "test_alert")
     assert os.path.exists(alert_file_path) is False
Exemple #2
0
 def test_alert_files(self):
     alert_file_path = os.path.join(self.config["alert_file_dir"], "test_alert")
     create_alert_file(self.pghoard.config, "test_alert")
     assert os.path.exists(alert_file_path) is True
     delete_alert_file(self.pghoard.config, "test_alert")
     assert os.path.exists(alert_file_path) is False