MCPcopy
hub / github.com/pex-tool/pex / assert_error

Function assert_error

tests/resolve/test_locked_resolve.py:266–270  ·  view source on GitHub ↗
(
    result,  # type: Union[Resolved[LockedResolve], Error]
    expected_error_message,  # type: str
)

Source from the content-addressed store, hash-verified

264
265
266def assert_error(
267 result, # type: Union[Resolved[LockedResolve], Error]
268 expected_error_message, # type: str
269):
270 assert Error(expected_error_message.strip()) == result
271
272
273def platform(plat):

Callers 7

test_not_foundFunction · 0.70
test_sourceFunction · 0.70
test_version_mismatchFunction · 0.70
test_wheel_tag_mismatchFunction · 0.70
test_constraint_mismatchFunction · 0.70
test_multiple_errorsFunction · 0.70

Calls 2

ErrorClass · 0.90
stripMethod · 0.80

Tested by

no test coverage detected