Test: Merged tw-1486.t into wait.t

This commit is contained in:
Paul Beckingham
2015-10-25 11:16:35 -04:00
parent 197e569d08
commit 1544d180a9
2 changed files with 18 additions and 60 deletions

View File

@@ -72,7 +72,7 @@ class TestBug434(TestCase):
self.t = Task()
def test_complete_waiting(self):
"""completion of waiting tasks"""
"""434: completion of waiting tasks"""
self.t("add One wait:tomorrow")
code, out, err = self.t("1 done")
@@ -83,6 +83,23 @@ class TestBug434(TestCase):
self.assertIn("No matches", err)
class Test1486(TestCase):
def setUp(self):
self.t = Task()
def test_waiting(self):
"""1486: Verify waiting report shows waiting tasks"""
self.t.config('uda.sep.type', 'string')
self.t('add regular')
self.t('add waited wait:later')
code, out, err = self.t('waiting')
self.assertEqual(0, code, "Exit code was non-zero ({0})".format(code))
self.assertIn('waited', out)
self.assertNotIn('regular', out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())