Test: Merged bug.956.t into helpers.t
This commit is contained in:
@@ -49,6 +49,41 @@ class TestZshAttributes(TestCase):
|
||||
self.assertEqual(fields[0], fields[1])
|
||||
|
||||
|
||||
class TestBug956(TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
"""Executed once before any test in the class"""
|
||||
cls.t = Task()
|
||||
cls.t("add test")
|
||||
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
|
||||
def test_ids_header(self):
|
||||
"""956: Verify 'ids' does not print a header"""
|
||||
code, out, err = self.t("rc.verbose:nothing ids")
|
||||
self.assertIn("1\n", out)
|
||||
self.assertNotIn("TASKRC", out)
|
||||
|
||||
def test_ids_helper_header(self):
|
||||
"""956: Verify '_ids' does not print a header"""
|
||||
code, out, err = self.t("rc.verbose:nothing _ids")
|
||||
self.assertIn("1\n", out)
|
||||
self.assertNotIn("TASKRC", out)
|
||||
|
||||
def test_uuids_header(self):
|
||||
"""956: Verify 'uuids' does not print a header"""
|
||||
code, out, err = self.t("rc.verbose:nothing uuids")
|
||||
self.assertRegexpMatches(out, "[0-9a-f-]*\n")
|
||||
self.assertNotIn("TASKRC", out)
|
||||
|
||||
def test_uuids_helper_header(self):
|
||||
"""956: Verify '_uuids' does not print a header"""
|
||||
code, out, err = self.t("rc.verbose:nothing _uuids")
|
||||
self.assertRegexpMatches(out, "[0-9a-f-]*\n")
|
||||
self.assertNotIn("TASKRC", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
||||
Reference in New Issue
Block a user