def METHOD_NAME(
    self,
    auth=True, broken_auth=False,
    username=None, password=None,
    instance_pk=None,
    data=None,
    method="POST",
):
    instance_pk = instance_pk or self.instance.pk
    url = reverse("wsone:event_notifications", args=(instance_pk,))
    kwargs = {"content_type": "application/json"}
    if auth:
        username = username or self.instance.username
        password = password or self.instance.get_password()
        if broken_auth:
            scheme = "Broken"
        else:
            scheme = "BaSIc"
        kwargs["HTTP_AUTHORIZATION"] = "{} {}".format(
            scheme,
            base64.b64encode(f"{username}:{password}".encode("utf-8")).decode("ascii")
        )
    if data:
        kwargs["data"] = json.dumps(data)
    if method == "POST":
        return self.client.post(url, **kwargs)
    elif method == "GET":
        return self.client.get(url, **kwargs)
    else:
        raise ValueError(f"Unsupported method {method}")