soft_assert_true(condition, message=None) | Verify that condition is True | self.soft_assert_true(a == b) | True if assertion passes, False if assertion fails |
soft_assert_false(condition, message=None) | Verify that condition is False | self.soft_assert_false(a == b) | True if assertion passes, False if assertion fails |
soft_assert_equal(first, second, message=None) | Verify that first is equal to second | self.soft_assert_equal(a, b) | True if assertion passes, False if assertion fails |
soft_assert_not_equal(first, second, message=None) | Verify that first is not equal to second | self.soft_assert_not_equal(a, b) | True if assertion passes, False if assertion fails |
soft_assert_is(first, second, message=None) | Verify that first and second are the same object | self.soft_assert_is(a, b) | True if assertion passes, False if assertion fails |
soft_assert_is_not(first, second, message=None) | Verify that first and second are not the same object | self.soft_assert_is_not(a, b) | True if assertion passes, False if assertion fails |
soft_assert_is_none(obj, message=None) | Verify that obj is None | self.soft_assert_is_none(a) | True if assertion passes, False if assertion fails |
soft_assert_is_not_none(obj, message=None) | Verify that obj is not None | self.soft_assert_is_not_none(a) | True if assertion passes, False if assertion fails |
soft_assert_in(obj, container, message=None) | Verify that obj is in container | self.soft_assert_in(a, [a, b, c]) | True if assertion passes, False if assertion fails |
soft_assert_not_in(obj, container, message=None) | Verify that obj is not in container | self.soft_assert_not_in(a, [b, c]) | True if assertion passes, False if assertion fails |
soft_assert_is_instance(obj, cls, message=None) | Verify that obj is instance of cls | self.soft_assert_is_instance(a, A) | True if assertion passes, False if assertion fails |
soft_assert_is_not_instance(obj, cls, message=None) | Verify that obj is not instance of cls | self.soft_assert_is_not_instance(a, B) | True if assertion passes, False if assertion fails |
soft_assert_almost_equal(first, second, delta, message=None) | Verify that first is almost equal to second and the different is equal or less to delta | self.soft_assert_almost_equal(1.001, 1.002, 0.1) | True if assertion passes, False if assertion fails |
soft_assert_not_almost_equal(first, second, delta, message=None) | Verify that first is not almost equal to second and the different is more than delta | self.soft_assert_not_almost_equal(1.001, 1.002, 0.0001) | True if assertion passes, False if assertion fails |
soft_assert_raises(exception, method: Callable, *args, **kwargs) | Verify that method execution raise exception | self.soft_assert_raises(TypeError, sum, 'a', 2) | True if assertion passes, False if assertion fails |
soft_assert_raises_with(exception, message=None) | Verify that execution in 'with' block raise exception | with self.soft_assert_raised_with(ValueError): raise ValueError(ERROR_MESSAGE_1) | |