Test: Merged tw-1609.t into filter.t

This commit is contained in:
Paul Beckingham
2015-10-25 11:43:48 -04:00
parent cf923b23c8
commit b025f0524b
2 changed files with 15 additions and 57 deletions

View File

@@ -951,6 +951,21 @@ class TestBug1521(TestCase):
self.assertIn("two", out)
class TestBug1609(TestCase):
def setUp(self):
"""Executed before each test in the class"""
self.t = Task()
def test_urgency_comparison(self):
"""1609: Test that urgency is filterable"""
self.t("add one project:P due:yesterday +tag1 +tag2")
self.t("add two")
code, out, err = self.t("'urgency<10' next")
self.assertNotIn("one", out)
self.assertIn("two", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())