committed by
Tomas Babej
parent
5c92dea674
commit
33dcea68f5
16
test/wait.t
16
test/wait.t
@@ -100,6 +100,22 @@ class Test1486(TestCase):
|
||||
self.assertNotIn('regular', out)
|
||||
|
||||
|
||||
class TestFeature2322(TestCase):
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
self.t = Task()
|
||||
|
||||
def test_done_unwait(self):
|
||||
"""2322: Done should un-wait a waiting task"""
|
||||
self.t("add foo wait:tomorrow")
|
||||
code, out, err = self.t("export")
|
||||
self.assertIn('"wait":', out)
|
||||
|
||||
self.t("1 done")
|
||||
code, out, err = self.t("export")
|
||||
self.assertNotIn('"wait":', out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
||||
Reference in New Issue
Block a user