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

@ -43,7 +43,7 @@ class TestLogoCommand(TestCase):
def test_logo_command(self):
"""Check that there are colors. For coverage"""
code, out, err = self.t("logo rc._forcecolor:on")
self.assertRegexpMatches(out, ".\[48;5;\d+m .\[0m")
self.assertRegex(out, ".\[48;5;\d+m .\[0m")
def test_logo_command_no_color(self):
"""Check that it only works with color. For coverage"""