# Red fixture for Python unit isolation (#393, defect 1b — last-segment match against
# any target). A patch mocks an imported symbol only when the patch target's MODULE
# PATH corresponds to the import's source, not merely its last dotted segment. Here
# `patch("otherpkg.unrelated.record")` shares a last segment with `record` but names a
# different module, and `patch("json.dumps")` shares a last segment with `dumps` but is
# stdlib — neither mocks the local collaborator, so both imports are flagged.
# unit under test — never a collaborator
# NOT mocked: the patch below names another module
# NOT mocked: `json.dumps` is a different module
# Uses the real `record` and `dumps` collaborators — not isolated.
assert is not None