コード例 #1
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())
コード例 #2
0
ファイル: report.py プロジェクト: farikonsec/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())
コード例 #3
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())
コード例 #4
0
ファイル: report.py プロジェクト: farikonsec/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())