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

@ -78,15 +78,15 @@ class TestUndoStyle(TestCase):
"""Test that 'rc.undo.style:side' generates the right output"""
self.t.config("undo.style", "side")
code, out, err = self.t("undo", input="n\n")
self.assertNotRegexpMatches(out, "-tags:\s*\n\+tags:\s+tag")
self.assertRegexpMatches(out, "tags\s+tag\s*")
self.assertNotRegex(out, "-tags:\s*\n\+tags:\s+tag")
self.assertRegex(out, "tags\s+tag\s*")
def test_undo_diff_style(self):
"""Test that 'rc.undo.style:diff' generates the right output"""
self.t.config("undo.style", "diff")
code, out, err = self.t("undo", input="n\n")
self.assertRegexpMatches(out, "-tags:\s*\n\+tags:\s+tag")
self.assertNotRegexpMatches(out, "tags\s+tag\s*")
self.assertRegex(out, "-tags:\s*\n\+tags:\s+tag")
self.assertNotRegex(out, "tags\s+tag\s*")
class TestBug634(TestCase):