def METHOD_NAME(self):
    with mock.patch.object(
        test_module, "decode_pack_message_outer", mock.MagicMock()
    ) as mock_decode_outer, mock.patch.object(
        test_module, "extract_payload_key", mock.MagicMock()
    ) as mock_extract:
        mock_decode_outer.return_value = (b"wrapper", {"my": b"recip"}, True)
        with pytest.raises(ValueError) as excinfo:
            test_module.decode_pack_message(b"encrypted", lambda x: None)
        assert "No corresponding recipient key found" in str(excinfo.value)
        mock_extract.return_value = (b"payload_key", None)
        with pytest.raises(ValueError) as excinfo:
            test_module.decode_pack_message(b"encrypted", lambda x: b"recip_secret")
        assert "Sender public key not provided" in str(excinfo.value)