def successful(self):
    'Returns :const:`True` if the task executed successfully.'
    return (self.state == states.SUCCESS)
Returns :const:`True` if the task executed successfully.
def successful(self):
    
    return (self.state == states.SUCCESS)