def METHOD_NAME(self):
    collection = DocumentCollectionFactory.create(
        user=self.user, public=True, listed=False
    )
    url = reverse("api:documentcollection-detail", kwargs={"pk": collection.pk})
    response = self.client.get(url)
    self.assertEqual(response.status_code, 401)
    response = self.client.get(url + "?uid=" + str(collection.uid))
    self.assertEqual(response.status_code, 200)
    self.client.force_login(self.user)
    response = self.client.get(url)
    self.assertEqual(response.status_code, 200)