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

@ -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__":