def METHOD_NAME(self):
    self.fake_check_output.mock.side_effect = subprocess.CalledProcessError(
        cmd=[self.review_tools_path, "fake.snap", "--json", "--allow-classic"],
        returncode=3,
        output=json.dumps(
            {
                "snap.v2_functional": {"error": {}, "warn": {}},
                "snap.v2_security": {
                    "error": {
                        "security-snap-v2:security_issue": {
                            "text": "(NEEDS REVIEW) security message."
                        }
                    },
                    "warn": {},
                },
                "snap.v2_lint": {"error": {}, "warn": {}},
            }
        ).encode(),
    )
    self.assertRaises(
        review_tools.errors.ReviewError, review_tools.run, snap_filename="fake.snap"
    )
    self.assert_fake_check_output_called()