TW-1455: Filter parser does not properly handle parentheses in attributes

- Thanks to Tomas Babej.
This commit is contained in:
Paul Beckingham 2015-07-13 12:02:05 -04:00
parent 54ee72a6f9
commit 1565c5d01a
2 changed files with 17 additions and 0 deletions

View file

@ -300,6 +300,21 @@ class TestBug1511(TestCase):
self.assertIn("one", out)
self.assertNotIn("zero", out)
class TestBug1455(TestCase):
def setUp(self):
self.t = Task()
def test_project_hierarchy_filter(self):
"""Test project:school)
Bug 1455: Filter parser does not properly handle parentheses in attributes
"""
self.t("add zero")
self.t("add one project:two)")
code, out, err = self.t("project:two) list")
self.assertIn("one", out)
self.assertNotIn("zero", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner