mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Use updated unittest method
This commit is contained in:
parent
407d66d681
commit
02db131fa1
50 changed files with 315 additions and 315 deletions
|
@ -42,16 +42,16 @@ class TestCommands(TestCase):
|
|||
def test_command_dna(self):
|
||||
"""Verify 'add', 'modify', 'list' dna"""
|
||||
code, out, err = self.t("commands")
|
||||
self.assertRegexpMatches(out, "add\s+operation\s+RW\s+Mods\s+Adds a new task")
|
||||
self.assertRegexpMatches(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of")
|
||||
self.assertRegexpMatches(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the")
|
||||
self.assertRegex(out, "add\s+operation\s+RW\s+Mods\s+Adds a new task")
|
||||
self.assertRegex(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of")
|
||||
self.assertRegex(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the")
|
||||
|
||||
def test_command_dna_color(self):
|
||||
"""Verify 'add', 'modify', 'list' dna"""
|
||||
code, out, err = self.t("commands rc._forcecolor:on")
|
||||
self.assertRegexpMatches(out, "add\s+operation\s+RW\s+Mods\s+Adds a new task")
|
||||
self.assertRegexpMatches(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of")
|
||||
self.assertRegexpMatches(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the")
|
||||
self.assertRegex(out, "add\s+operation\s+RW\s+Mods\s+Adds a new task")
|
||||
self.assertRegex(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of")
|
||||
self.assertRegex(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue