def to_dict(self):
        """Serialize the ``TestResult`` to a dictionary.

        """
        return {
            'test_class': self.test_class,
            'test_method_name': self.test_method_name,
            'status': self.status,
            'exception': self.exception,
            'message': self.message,
            # 'started_time': self.started_time,
            'completed_time': self.completed_time,
        }
def to_dict ( self ) : return { 'test_class' : self . test_class , 'test_method_name' : self . test_method_name , 'status' : self . status , 'exception' : self . exception , 'message' : self . message , 'completed_time' : self . completed_time , }
Serialize the ``TestResult`` to a dictionary.