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

@@ -56,12 +56,12 @@ class TestUDAOrphans(TestCase):
# 'info' should show orphans.
code, out, err = self.t("1 info")
self.assertRegexpMatches(out, "\[extra\s+foo\]")
self.assertRegex(out, "\[extra\s+foo\]")
# 'modify' should not change the orphan
self.t("1 modify /one/two/")
code, out, err = self.t("1 info")
self.assertRegexpMatches(out, "\[extra\s+foo\]")
self.assertRegex(out, "\[extra\s+foo\]")
# 'export' should include orphans.
code, out, err = self.t("1 export")