Beispiel #1
0
    def test_it_should_be_compliant_if_a_non_compliant_test_case_is_optional(self):
        tr = TestSuiteResults(None)

        tr.append(self.c1, Outcome(Outcome.Results.PASS))
        tr.append(self.c2, Outcome(Outcome.Results.FAIL))

        self.assertTrue(tr.is_compliant())
Beispiel #2
0
    def test_it_should_not_be_compliant_if_a_test_case_is_not_compliant(self):
        tr = TestSuiteResults(None)

        tr.append(self.c1, Outcome(Outcome.Results.FAIL))
        tr.append(self.c2, Outcome(Outcome.Results.PASS))

        self.assertFalse(tr.is_compliant())
Beispiel #3
0
    def test_it_should_be_compliant_if_all_test_cases_are_compliant(self):
        tr = TestSuiteResults(None)

        tr.append(self.c1, Outcome(Outcome.Results.PASS))
        tr.append(self.c2, Outcome(Outcome.Results.PASS))

        self.assertTrue(tr.is_compliant())
Beispiel #4
0
    def test_it_should_not_be_compliant_if_a_test_case_is_not_compliant(self):
        tr = TestSuiteResults(None)

        tr.append(self.c1, Outcome(Outcome.Results.FAIL))
        tr.append(self.c2, Outcome(Outcome.Results.PASS))

        self.assertFalse(tr.is_compliant())
Beispiel #5
0
    def test_it_should_be_compliant_if_all_test_cases_are_compliant(self):
        tr = TestSuiteResults(None)

        tr.append(self.c1, Outcome(Outcome.Results.PASS))
        tr.append(self.c2, Outcome(Outcome.Results.PASS))

        self.assertTrue(tr.is_compliant())
Beispiel #6
0
    def test_it_should_be_compliant_if_a_non_compliant_test_case_is_optional(
            self):
        tr = TestSuiteResults(None)

        tr.append(self.c1, Outcome(Outcome.Results.PASS))
        tr.append(self.c2, Outcome(Outcome.Results.FAIL))

        self.assertTrue(tr.is_compliant())