Test: Merged tw-1419.t into add.t

This commit is contained in:
Paul Beckingham
2015-10-24 11:01:09 -04:00
parent 4a1a464f0a
commit 379d7dfc6e
2 changed files with 14 additions and 56 deletions

View File

@@ -128,13 +128,26 @@ class TestBug1359(TestCase):
self.t = Task()
def test_add_hyphenated(self):
"""1359: one-two-three" in description triggers Malformed ID error"""
"""1359: one-two-three in description triggers Malformed ID error"""
self.t("add 'one-two-three.ca'")
code, out, err = self.t("1 info")
self.assertIn("one-two-three.ca", out)
class TestBug1419(TestCase):
def setUp(self):
"""Executed before each test in the class"""
self.t = Task()
def test_add_with_remove_tag(self):
"""1419: Verify that '-two' is not treated as a tag on add"""
self.t("add one -two")
code, out, err = self.t("_get 1.description")
self.assertEqual("one -two\n", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())