def test_remove_crontab_not_existent(self): """If the crontab file doesn't exist, remove_crontab no-ops.""" self.assertFalse(self.paths['cron'].exists()) remove_crontab(paths=self.paths) self.assertFalse(self.paths['cron'].exists())
def remove_cron(): cron.remove_crontab() remove_state(charm_state('job.enabled'))
def test_remove_crontab(self): """remove_crontab removes the crontab file.""" install_crontab(paths=self.paths) remove_crontab(paths=self.paths) self.assertFalse(self.paths['cron'].exists())
def remove_cron(): cron.remove_crontab() clear_flag(charm_flag('job.enabled'))