def METHOD_NAME(self, obj, attr, ignore):
    ''' succeed iff hasattr(obj,attr) or attr in ignore. '''
    if attr in ignore: return
    if not hasattr(obj, attr): print "???", attr
    self.assertTrue(hasattr(obj, attr),
                    'expected hasattr(%r, %r)' % (obj, attr))