[Avocado-devel] initializing class attributes
Brian J. Murrell
brian at interlinx.bc.ca
Wed Nov 28 17:30:34 UTC 2018
Any opinions on the preference of initializing Test class attributes in
setUp() vs. the more traditional __init__()?
I.e. if my tearDown() is:
def tearDown(self):
print self.foo
self.foo needs to be initialized. Typically in python objects, this is
done in __init__(), but given that avocado always runs setUp(), it
could be done at the start of it.
I wonder what the preferred method is.
Cheers,
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20181128/e312bac5/attachment.sig>
More information about the Avocado-devel
mailing list