mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
tests: Use updated unittest methods
This commit is contained in:
parent
720c561b75
commit
52c49169b4
50 changed files with 315 additions and 315 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue