Test: Merged bug.954.t into uuid.t
This commit is contained in:
18
test/uuid.t
18
test/uuid.t
@@ -197,6 +197,24 @@ class TestUUIDuplicates(TestCase):
|
||||
self.assertIn("No duplicates found", out)
|
||||
|
||||
|
||||
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):
|
||||
"""954: Verify deletion using extant UUID"""
|
||||
code, out, err = self.t("_get 1.uuid")
|
||||
code, out, err = self.t(out.strip() + " delete", input="y\n")
|
||||
self.assertIn("Deleting task 1 'foo'", out)
|
||||
|
||||
def test_deletion_by_missing_uuid(self):
|
||||
"""954: Verify deletion using missing UUID"""
|
||||
code, out, err = self.t.runError("874e146d-07a2-2d2c-7808-a76e74b1a332 delete")
|
||||
self.assertIn("No tasks specified.", err)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
||||
Reference in New Issue
Block a user