Test: Merged tw-1617.t into project.t

This commit is contained in:
Paul Beckingham
2015-10-25 11:47:14 -04:00
parent 8d45d40a90
commit 9df8187396
2 changed files with 15 additions and 57 deletions

View File

@@ -453,6 +453,21 @@ class TestBug1430(TestCase):
self.assertEqual("home/garden\n", out)
class TestBug1617(TestCase):
def setUp(self):
"""Executed before each test in the class"""
self.t = Task()
def test_multi_word_project(self):
"""1617: Verify search for multi-word project"""
self.t("add one")
self.t("add two project:'three four'")
code, out, err = self.t("project:'three four' list")
self.assertIn("two", out)
self.assertNotIn("one", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())