def METHOD_NAME(self):
    data = {
        "raw": "\n# cool stuff comment\n*.js                    @getsentry/frontend @NisanthanNanthakumar\n# good comment\n\n\n  docs/*  @getsentry/docs @getsentry/ecosystem\nsrc/sentry/*       @AnotherUser\n\n"
    }
    with self.feature({"organizations:integrations-codeowners": True}):
        response = self.client.put(self.url, data)
    assert response.status_code == 200
    assert response.data["id"] == str(self.codeowners.id)
    assert response.data["codeMappingId"] == str(self.code_mapping.id)
    errors = response.data["errors"]
    assert set(errors["missing_external_teams"]) == {"@getsentry/frontend", "@getsentry/docs"}
    assert set(errors["missing_external_users"]) == {"@AnotherUser"}
    assert errors["missing_user_emails"] == []
    assert errors["teams_without_access"] == []
    assert errors["users_without_access"] == []