def METHOD_NAME(self):
    """
    Test the list of organizations to not be duplicated.
    This cannot be possible for now, as the base queryset uses
    only one OUTER JOIN, but we expect to prevent this in the future.
    """
    user = factories.UserFactory()
    created_on = timezone.now()
    organization = factories.OrganizationFactory(created_on=created_on)
    factories.OrganizationAccessFactory(
        user=user, organization=organization, role=models.ADMINISTRATOR
    )
    # Other organization access not linked to the current user
    other_accesses = factories.OrganizationAccessFactory.create_batch(
        10, organization=organization
    )
    # Other organization not linked to the current user
    factories.OrganizationAccessFactory.create_batch(3)
    # Other organization linked to the current user but not as admin
    factories.OrganizationAccessFactory(
        user=user,
        role=models.STUDENT,
    )
    # In case we also add a consumer site admin to access organization
    consumer_site_organization = factories.ConsumerSiteOrganizationFactory(
        organization=organization,
    )
    factories.ConsumerSiteAccessFactory(
        user=user,
        consumer_site=consumer_site_organization.consumer_site,
        role=models.ADMINISTRATOR,
    )
    # other consumer site administrator
    factories.ConsumerSiteAccessFactory(
        consumer_site=consumer_site_organization.consumer_site,
        role=models.ADMINISTRATOR,
    )
    factories.ConsumerSiteAccessFactory.create_batch(
        10, consumer_site=consumer_site_organization.consumer_site
    )
    jwt_token = UserAccessTokenFactory(user=user)
    response = self.client.get(
        "/api/organizations/",
        HTTP_AUTHORIZATION=f"Bearer {jwt_token}",
        content_type="application/json",
    )
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.json()["count"], 1)
    self.assertEqual(response.json()["results"][0]["id"], str(organization.pk))
    self.assertEqual(response.json()["results"][0]["name"], organization.name)
    self.assertListEqual(
        response.json()["results"][0]["consumer_sites"],
        [str(consumer_site_organization.consumer_site.pk)],
    )
    self.assertListEqual(
        sorted(response.json()["results"][0]["users"]),
        sorted([str(user.pk)] + [str(access.user_id) for access in other_accesses]),
    )