tests: Use updated unittest methods

This commit is contained in:
Tomas Babej
2020-11-21 12:39:03 -05:00
parent 720c561b75
commit 52c49169b4
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"""