def test_update_nested_person_links_authorized(self):
        person_data = {
            "id":"8497ba86-7485-42d2-9596-2ab14520f1f4",
            "identifiers":[
                {
                    "id": "af7c01b5-1c4f-4c08-9174-3de5ff270bdb",
                    "links": [{
                        "id": "9c9a2093-c3eb-4b51-b869-0d3b4ab281fd",
                        "note": "this is just a test note",
                    }]
                }
            ],
        }
        token = Token.objects.get(user__username="admin")
        self.client.credentials(HTTP_AUTHORIZATION='Token ' + token.key)

        response = self.client.put("/en/persons/8497ba86-7485-42d2-9596-2ab14520f1f4/", person_data)
        self.assertEqual(response.status_code, status.HTTP_200_OK)
        person_ = Person.objects.language('en').get(id='8497ba86-7485-42d2-9596-2ab14520f1f4')
        identifier = person_.identifiers.language('en').get(id="af7c01b5-1c4f-4c08-9174-3de5ff270bdb")
        link = identifier.links.language('en').get(id="9c9a2093-c3eb-4b51-b869-0d3b4ab281fd")
        self.assertEqual(link.note, "this is just a test note")