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())
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())