Aug-10-2018, 10:22 AM
Howdy Arjun!
On line 51 of your listtree.py file you have a typo. self.__class.__name__,
Should instead be self.__class__.__name__,
The error message alerts you of this by saying AttributeError: 'Sub' object has no attribute '_ListTree__class'
Without the trailing '__' on __class__ python 'mangles' the method call for self.__class to make it call a private method 'self._ListTree__class'
'self' in this case is the Sub class from testmixin.py the interpreter throws the error before moving to the .__name__ portion of your code on line 51.
Hope this helped sort your problem.
-Retrubtion
On line 51 of your listtree.py file you have a typo. self.__class.__name__,
Should instead be self.__class__.__name__,
The error message alerts you of this by saying AttributeError: 'Sub' object has no attribute '_ListTree__class'
Without the trailing '__' on __class__ python 'mangles' the method call for self.__class to make it call a private method 'self._ListTree__class'
'self' in this case is the Sub class from testmixin.py the interpreter throws the error before moving to the .__name__ portion of your code on line 51.
Hope this helped sort your problem.
-Retrubtion