Skip to content Skip to sidebar Skip to footer

Attributeerror: Object Has No Attribute '_type_equality_funcs'

I am getting following error with Unittest module implement for my program File '/usr/lib/python2.7/unittest/case.py', line 493, in _getAssertEqualityFunc asserter = self._type

Solution 1:

self.assertEqual will be only available to classes which inherits unittest.TestCase class, which your Utility class not doing.

I suggest try putting your Utility methods under BaseTestCase class.

Give it a name not starting with test_, later on call this new function to validate your asserts for numerous other functions.

Post a Comment for "Attributeerror: Object Has No Attribute '_type_equality_funcs'"