コード例 #1
0
 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())
コード例 #2
0
 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())
コード例 #3
0
 def test_has_failed_fail(self):
     verificator = mock.Mock()
     failure = mock.Mock()
     verification_suit = VerificationSuitResult(
         [VerificatorResultFailure(verificator, failure)])
     self.assertTrue(verification_suit.has_failed())
コード例 #4
0
 def test_has_failed_ok(self):
     verificator = mock.Mock()
     verification_suit = VerificationSuitResult(
         [VerificatorResultSuccess(verificator)])
     self.assertFalse(verification_suit.has_failed())
コード例 #5
0
 def test_has_failed_fail(self):
     verificator = mock.Mock()
     failure = mock.Mock()
     verification_suit = VerificationSuitResult(
         [VerificatorResultFailure(verificator, failure)])
     self.assertTrue(verification_suit.has_failed())
コード例 #6
0
 def test_has_failed_ok(self):
     verificator = mock.Mock()
     verification_suit = VerificationSuitResult(
         [VerificatorResultSuccess(verificator)])
     self.assertFalse(verification_suit.has_failed())