示例#1
0
文件: core.py 项目: Tienenbao/plan
    def test_environment_variables(self):
        plan = Plan()
        plan.env('MAILTO', '*****@*****.**')
        plan.command('command', every='1.day')
        desired_cron_content = """\
# Begin Plan generated jobs for: main
MAILTO="*****@*****.**"
0 0 * * * command
# End Plan generated jobs for: main
"""
        self.assert_equal(plan.cron_content, desired_cron_content)