def METHOD_NAME(self):
    # Allow gamma user to use this endpoint, but does not have datasource access
    perm = security_manager.find_permission_view_menu(
        "can_get_column_values", "Datasource"
    )
    gamma_role = security_manager.find_role("Gamma")
    security_manager.add_permission_role(gamma_role, perm)
    self.login(username="gamma")
    table = self.get_virtual_dataset()
    rv = self.client.get(f"api/v1/datasource/table/{table.id}/column/col1/values/")
    self.assertEqual(rv.status_code, 403)
    response = json.loads(rv.data.decode("utf-8"))
    self.assertEqual(
        response["message"],
        "This endpoint requires the datasource virtual_dataset, "
        "database or `all_datasource_access` permission",
    )