def test_has_failed_error(self): verificator = mock.Mock() error_type = mock.Mock() value = mock.Mock() traceback = mock.Mock() verification_suit = VerificationSuitResult([ VerificatorResultError(verificator, error_type, value, traceback)]) self.assertTrue(verification_suit.has_failed())
def test_has_failed_fail(self): verificator = mock.Mock() failure = mock.Mock() verification_suit = VerificationSuitResult( [VerificatorResultFailure(verificator, failure)]) self.assertTrue(verification_suit.has_failed())
def test_has_failed_ok(self): verificator = mock.Mock() verification_suit = VerificationSuitResult( [VerificatorResultSuccess(verificator)]) self.assertFalse(verification_suit.has_failed())