From f68d6fd81262c1de5a55e949104aa6dc8d14b5ba Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 15 Jul 2015 07:41:36 -0400 Subject: [PATCH] Test: Cleanup and test split MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Test was adding tasks for no reaѕon. - Split into two tests, testing distinct problems. --- test/bug.954.t | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/bug.954.t b/test/bug.954.t index d0fef8ddf..c069314a0 100755 --- a/test/bug.954.t +++ b/test/bug.954.t @@ -40,15 +40,16 @@ class TestBug954(TestCase): def setUp(self): """Executed before each test in the class""" self.t = Task() + self.t("add foo") def test_deletion_by_uuid(self): - """""" - self.t("add foo") - self.t("add bar") + """Verify deletion using extant UUID""" code, out, err = self.t("_get 1.uuid") - code, out, err = self.t("%s delete" % out.strip()) + code, out, err = self.t(out.strip() + " delete") self.assertIn("Deleting task 1 'foo'", out) + def test_deletion_by_missing_uuid(self): + """Verify deletion using missing UUID""" code, out, err = self.t.runError("874e146d-07a2-2d2c-7808-a76e74b1a332 delete") self.assertIn("No tasks specified.", err)