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
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