tests: Use updated unittest method

This commit is contained in:
Tomas Babej 2020-11-20 23:59:56 -05:00 committed by Paul Beckingham
parent 407d66d681
commit 02db131fa1
50 changed files with 315 additions and 315 deletions

View file

@ -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__":