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

@ -120,13 +120,13 @@ class TestBug956(TestCase):
def test_uuids_header(self):
"""956: Verify 'uuids' does not print a header"""
code, out, err = self.t("rc.verbose:nothing uuids")
self.assertRegexpMatches(out, "[0-9a-f-]*\n")
self.assertRegex(out, "[0-9a-f-]*\n")
self.assertNotIn("TASKRC", out)
def test_uuids_helper_header(self):
"""956: Verify '_uuids' does not print a header"""
code, out, err = self.t("rc.verbose:nothing _uuids")
self.assertRegexpMatches(out, "[0-9a-f-]*\n")
self.assertRegex(out, "[0-9a-f-]*\n")
self.assertNotIn("TASKRC", out)