From 7425c8f2ae9052dc707bd8d7d6d8f96d2a7f5638 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 27 Jun 2015 14:35:07 -0400 Subject: [PATCH] Test: Removed useless tests - The args.1.t script contained tests that weren't testing what they claimed to test, and are now removed. --- test/args.1.t | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/test/args.1.t b/test/args.1.t index 7532d9cd4..4c12269c7 100755 --- a/test/args.1.t +++ b/test/args.1.t @@ -42,7 +42,6 @@ class TestIDPosition(TestCase): self.t(("add", "one")) self.t(("add", "two")) - self.t(("add", "three")) def test_id(self): """Test id before and after command""" @@ -50,21 +49,12 @@ class TestIDPosition(TestCase): self.assertIn("one", out) self.assertIn("two", out) - self.assertIn("three", out) code, out, err = self.t(("1", "done")) self.assertIn("Completed 1 task.", out) - filter = "rc.allow.empty.filter:yes" - code, out, err = self.t.runError((filter, "done", "2")) - self.assertIn("Command prevented from running.", err) - self.assertNotIn("Completed 1 task.", out) - - filter = "rc.allow.empty.filter:no" - code, out, err = self.t.runError((filter, "done", "2")) - self.assertIn("You did not specify a filter, and with the " - "'allow.empty.filter' value, no action is taken.", err) - self.assertNotIn("Completed 1 task.", out) + code, out, err = self.t(("done", "2")) + self.assertIn("Completed 1 task.", out) if __name__ == "__main__": from simpletap import TAPTestRunner