tests: Use updated unittest methods

This commit is contained in:
Tomas Babej 2020-11-21 12:39:03 -05:00
parent 720c561b75
commit 52c49169b4
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5
50 changed files with 315 additions and 315 deletions

View file

@ -65,7 +65,7 @@ class TestDuplication(TestCase):
def test_duplication_showing_uuid(self):
"""Verify duplicate can show uuid"""
code, out, err = self.t("1 duplicate rc.verbose:new-uuid")
self.assertRegexpMatches(out, "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")
self.assertRegex(out, "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")
class TestDuplication2(TestCase):