def test_should_raise_exception_when_not_all_tests_pass(self):
    self.reports_processor.tests_failed = 1
    self.assertRaises(BuildFailedException, self.reports_processor.write_report_and_ensure_all_tests_passed)
def test_should_raise_exception_when_not_all_tests_pass(self):
    self.reports_processor.tests_failed = 1
    self.assertRaises(BuildFailedException, self.reports_processor.write_report_and_ensure_all_tests_passed)