def METHOD_NAME(self, safe_urlopen):
    with pytest.raises(APIUnauthorized):
        InstallationNotifier.run(install=self.install, user=self.user, action="updated")
    assert not safe_urlopen.called