mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Use updated unittest method
This commit is contained in:
parent
407d66d681
commit
02db131fa1
50 changed files with 315 additions and 315 deletions
|
@ -47,7 +47,7 @@ class TestDateISOAndEpoch(TestCase):
|
|||
# Partial date, because _get returns local time, and that would make
|
||||
# the test sensitive to TZ.
|
||||
code, out, err = self.t("_get 1.due")
|
||||
self.assertRegexpMatches(out, "^2015-07-0.T..:..:..$")
|
||||
self.assertRegex(out, "^2015-07-0.T..:..:..$")
|
||||
|
||||
def test_epoch(self):
|
||||
"""Verify adding epoch dates works regardless of rc.dateformat"""
|
||||
|
@ -56,7 +56,7 @@ class TestDateISOAndEpoch(TestCase):
|
|||
# Partial date, because _get returns local time, and that would make
|
||||
# the test sensitive to TZ.
|
||||
code, out, err = self.t("_get 1.due")
|
||||
self.assertRegexpMatches(out, "^2009-02-1.T..:..:..$")
|
||||
self.assertRegex(out, "^2009-02-1.T..:..:..$")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue