'succeed iff hasattr(obj,attr) or attr in ignore.'

def assertHasattr(self, obj, attr, ignore):

    if (attr in ignore):
        return
    if (not hasattr(obj, attr)):
        print '???', attr
    self.assertTrue(hasattr(obj, attr), ('expected    hasattr(%r,    %r)' % (obj, attr)))
