From cfe57c3870f1e81487dc23a088b009875b1800bf Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 17 Jul 2015 13:38:50 -0400 Subject: [PATCH] Test: Verify error on log of recurring or waiting task --- test/log.t | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/log.t b/test/log.t index d44db5b43..cf2231bad 100755 --- a/test/log.t +++ b/test/log.t @@ -47,6 +47,15 @@ class TestLogCommand(TestCase): code, out, err = self.t("completed") self.assertIn("This is a test", out) + def test_log_wait(self): + """Verify that you cannot log a waited task""" + code, out, err = self.t.runError("log This is a test wait:eoy") + self.assertIn("You cannot log waiting tasks.", err) + + def test_log_recur(self): + """Verify that you cannot log a recurring task""" + code, out, err = self.t.runError("log This is a test due:eom recur:weekly") + self.assertIn("You cannot log recurring tasks.", err) if __name__ == "__main__": from simpletap import TAPTestRunner