Unittest - docstring clarification
* Clarify how the alias is supposed to work in case readers are not familiar with what __call__ does.
This commit is contained in:
@@ -59,7 +59,7 @@ class Task(object):
|
||||
return "{0} running from {1}>".format(txt[:-1], self.datadir)
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
"Alias to runSuccess"
|
||||
"aka t = Task() ; t() which is now an alias to t.runSuccess()"
|
||||
return self.runSuccess(*args, **kwargs)
|
||||
|
||||
def bind_taskd_server(self, taskd):
|
||||
|
||||
Reference in New Issue
Block a user