示例#1
0
    def test_it_should_not_be_compliant_if_a_test_suite_is_not_compliant(self):
        r1 = Report("host", "Test Report", "MWR", "Test Case", "N/A")

        r1.append(1, self.c1, Outcome(Outcome.Results.FAIL))
        r1.append(1, self.c2, Outcome(Outcome.Results.PASS))
        r1.append(2, self.c3, Outcome(Outcome.Results.PASS))

        self.assertFalse(r1.is_compliant())
示例#2
0
    def test_it_should_be_compliant_if_all_test_suites_are_compliant(self):
        r1 = Report("host", "Test Report", "MWR", "Test Case", "N/A")

        r1.append(1, self.c1, Outcome(Outcome.Results.PASS))
        r1.append(1, self.c2, Outcome(Outcome.Results.PASS))
        r1.append(2, self.c3, Outcome(Outcome.Results.PASS))

        self.assertTrue(r1.is_compliant())
示例#3
0
文件: report.py 项目: bobdoah/veripy
    def test_it_should_not_be_compliant_if_a_test_suite_is_not_compliant(self):
        r1 = Report("host", "Test Report", "MWR", "Test Case", "N/A")

        r1.append(1, self.c1, Outcome(Outcome.Results.FAIL))
        r1.append(1, self.c2, Outcome(Outcome.Results.PASS))
        r1.append(2, self.c3, Outcome(Outcome.Results.PASS))

        self.assertFalse(r1.is_compliant())
示例#4
0
文件: report.py 项目: bobdoah/veripy
    def test_it_should_be_compliant_if_all_test_suites_are_compliant(self):
        r1 = Report("host", "Test Report", "MWR", "Test Case", "N/A")

        r1.append(1, self.c1, Outcome(Outcome.Results.PASS))
        r1.append(1, self.c2, Outcome(Outcome.Results.PASS))
        r1.append(2, self.c3, Outcome(Outcome.Results.PASS))

        self.assertTrue(r1.is_compliant())