def METHOD_NAME(
    self,
    test_label,
    path,
    method=None,
    write_secret_before_test=True,
    raises=None,
    exception_message="",
):
    test_secret = {
        "pssst": "hi",
    }
    if write_secret_before_test:
        self.client.secrets.kv.v1.create_or_update_secret(
            path=path,
            secret=test_secret,
            mount_point=self.DEFAULT_MOUNT_POINT,
        )
    if raises:
        with self.assertRaises(raises) as cm:
            self.client.secrets.kv.v1.create_or_update_secret(
                path=path,
                secret=test_secret,
                method=method,
                mount_point=self.DEFAULT_MOUNT_POINT,
            )
        self.assertIn(
            member=exception_message,
            container=str(cm.exception),
        )
    else:
        create_or_update_secret_result = (
            self.client.secrets.kv.v1.create_or_update_secret(
                path=path,
                secret=test_secret,
                method=method,
                mount_point=self.DEFAULT_MOUNT_POINT,
            )
        )
        self.assertEqual(
            first=204,
            second=create_or_update_secret_result.status_code,
        )