sdk/python/Testing/PyAssertpy
Testing

PyAssertpy

Third-party Python package module — assertpy. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.add_extension()Neutral
#
Signature
add_extension(func)

add_extension function.

.assert_that()Neutral
#
Signature
assert_that(val, description)

assert_that function.

.assert_warn()Neutral
#
Signature
assert_warn(val, description, logger)

assert_warn function.

.assertpy.add_extension()Neutral
#
Signature
assertpy.add_extension(func)

assertpy.add_extension function.

.assertpy.assert_that()Neutral
#
Signature
assertpy.assert_that(val, description)

assertpy.assert_that function.

.assertpy.assert_warn()Neutral
#
Signature
assertpy.assert_warn(val, description, logger)

assertpy.assert_warn function.

.assertpy.fail()Neutral
#
Signature
assertpy.fail(msg)

assertpy.fail function.

.assertpy.remove_extension()Neutral
#
Signature
assertpy.remove_extension(func)

assertpy.remove_extension function.

.assertpy.soft_assertions()Neutral
#
Signature
assertpy.soft_assertions()

assertpy.soft_assertions function.

.assertpy.soft_fail()Neutral
#
Signature
assertpy.soft_fail(msg)

assertpy.soft_fail function.

Fully-Qualified Names

FQNField
assertpyfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import assertpy