''' succeed iff hasattr(obj,attr) or attr in ignore. '''
if attr in ignore: return
if not hasattr(obj, attr): print "???", attr
- self.failUnless(hasattr(obj, attr))
+ self.failUnless(hasattr(obj, attr),
+ 'expected hasattr(%r, %r)' % (obj, attr))
def assertHaskey(self, obj, key, ignore):
cm('aifc', ignore=('openfp',)) # set with =
cm('httplib', ignore=('error', # set with =
+ 'sendall', # set with =
+ '_closedsocket', # it's a nested class
'HTTPS',
'HTTP11')) # not on all platforms