Tests: bug.485 merged with filter.t

This commit is contained in:
Renato Alves
2015-06-11 23:42:46 +01:00
parent bd3cce7d4b
commit 2c4480dc1b
2 changed files with 23 additions and 61 deletions

View File

@@ -510,6 +510,29 @@ class TestBug480B(TestCase):
self.assertNotIn("three", out)
class TestBug485(TestCase):
@classmethod
def setUp(cls):
cls.t = Task()
cls.t.config("verbose", "nothing")
cls.t(("add", "one", "due:tomorrow", "recur:monthly"))
cls.t(("add", "two", "due:tomorrow", "recur:1month"))
def test_filter_recur_monthly(self):
"""filter 'recur:monthly' doesn't list monthly tasks"""
code, out, err = self.t(("list", "recur:monthly"))
self.assertIn("one", out)
self.assertIn("two", out)
def test_filter_recur_1month(self):
"""filter 'recur:1month' doesn't list monthly tasks"""
code, out, err = self.t(("list", "recur:1month"))
self.assertIn("one", out)
self.assertIn("two", out)
@unittest.skip("WaitingFor TW-1600")
class TestBug1600(TestCase):
def setUp(self):