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

@@ -68,7 +68,7 @@ class TestFeature559(TestCase):
code, out, err = self.t.runError("rc.data.location=locationdoesnotexist list")
self.assertNotIn("footask", out)
self.assertNotIn("Error", out)
self.assertRegexpMatches(err, re.compile("Error:.+does not exist", re.DOTALL))
self.assertRegex(err, re.compile("Error:.+does not exist", re.DOTALL))
if __name__ == "__main__":