Tests: Added test for TW-1763

This commit is contained in:
Paul Beckingham 2016-02-02 01:07:47 -05:00
parent 1187ad16cc
commit ea82d88816

View file

@ -33,7 +33,6 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from basetest import Task, TestCase
class TestBug1306(TestCase):
def setUp(self):
self.t = Task()
@ -44,6 +43,16 @@ class TestBug1306(TestCase):
code, out, err = self.t("1 info")
self.assertIn("PROJ", out)
class TestBug1763(TestCase):
def setUp(self):
self.t = Task()
def test_mod_nop(self):
"""Removing the due date of a task with no due date modifies the task"""
self.t("add foo")
code, out, err = self.t("1 modify due:")
self.assertIn("Modified 0 tasks.", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())