Test: Merged bug.856.t into project.t

This commit is contained in:
Paul Beckingham 2015-07-12 16:45:26 -04:00
parent c92ee148f6
commit 3c47dc6c36
2 changed files with 24 additions and 68 deletions

View file

@ -261,6 +261,30 @@ class TestBug906(TestCase):
self.assertNotIn("one", out)
self.assertIn("two", out)
class TestBug856(TestCase):
def setUp(self):
self.t = Task()
def test_project_hierarchy_filter(self):
"""Test project.none: works
Bug 856: "task list project.none:" does not work.
"""
self.t("add assigned project:X")
self.t("add floating")
code, out, err = self.t("project: ls")
self.assertIn("floating", out)
self.assertNotIn("assigned", out)
code, out, err = self.t("project:\'\' ls")
self.assertIn("floating", out)
self.assertNotIn("assigned", out)
code, out, err = self.t("project.none: ls")
self.assertIn("floating", out)
self.assertNotIn("assigned", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner