def METHOD_NAME(mcs, route_name):
    """Generate the tests to attach to the new class."""
    def access_method(self):
        """Test that unauthenticated access is denied."""
        response = self.client.get(reverse('{}-list'.format(route_name)))
        self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
    def list_method(self):
        """Test that listing operations work"""
        response = self.authed_get('{}-list'.format(route_name))
        self.assertEqual(response.status_code, status.HTTP_200_OK)
    def detail_method(self):
        """Test that detail operations work"""
        response = self.authed_get(
            '{}-detail'.format(route_name), args=(1,))
        self.assertEqual(response.status_code, status.HTTP_200_OK)
    return (access_method, list_method, detail_method)