def __repr__(self):
        params = self.get_params()
        param_values = self.get_param_values(params, [], self.param_kwargs)

        # Build up task id
        repr_parts = []
        param_objs = dict(params)
        for param_name, param_value in param_values:
            if param_objs[param_name].significant:
                repr_parts.append('%s=%s' % (param_name, param_objs[param_name].serialize(param_value)))

        task_str = '{}({})'.format(self.task_family, ', '.join(repr_parts))

        return task_str
Test XML rendering.
dataset/ETHPy150Open spotify/luigi/luigi/task.py/Task.__repr__--crossover with--dataset/ETHPy150Open jpadilla/django-rest-framework-xml/tests/test_renderers.py/XMLRendererTestCase.test_render_datetime