Test: Converted to use cleaner command to run task
This commit is contained in:
@@ -42,8 +42,8 @@ class TestDateISOAndEpoch(TestCase):
|
||||
|
||||
def test_iso(self):
|
||||
"""Verify adding ISO dates works regardless of rc.dateformat"""
|
||||
self.t(("add", "one", "due:20150703T000000Z"))
|
||||
code, out, err = self.t(("_get", "1.due"))
|
||||
self.t("add one due:20150703T000000Z")
|
||||
code, out, err = self.t("_get 1.due")
|
||||
|
||||
# Partial date, because _get returns local time, and that would make
|
||||
# the test sensitive to TZ.
|
||||
@@ -51,8 +51,8 @@ class TestDateISOAndEpoch(TestCase):
|
||||
|
||||
def test_epoch(self):
|
||||
"""Verify adding epoch dates works regardless of rc.dateformat"""
|
||||
self.t(("add", "one", "due:1234567890"))
|
||||
code, out, err = self.t(("_get", "1.due"))
|
||||
self.t("add one due:1234567890")
|
||||
code, out, err = self.t("_get 1.due")
|
||||
self.assertIn("2009-02-13T18:31:30", out)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user