Re: [Avocado-devel] initializing class attributes

2018-11-28 Thread Cleber Rosa
On 11/28/18 12:30 PM, Brian J. Murrell wrote: > 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

[Avocado-devel] initializing class attributes

2018-11-28 Thread Brian J. Murrell
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