

def assertHasAttr(self, obj, attr):
    self.assertTrue(hasattr(obj, obj), "{} doesn't have attribute: {}".format(obj, attr))

dataset/ETHPy150Open StartTheShift/thunderdome/thunderdome/tests/base.py BaseThunderdomeTestCase.assertHasAttr/VarMisuse@22/26 `attr`->`obj`