def test_newstyle_unbound_inheritance():
 class foo:
  def func(self):
   return self
 class bar(object, foo, ):
  def barfunc(self):
   return foo.func(self)
 a = bar()
 AreEqual(a.barfunc(), a)

def test_newstyle_unbound_inheritance ( ) : class foo : def func ( self ) : return self class bar ( object , foo , ) : def barfunc ( self ) : return foo . func ( self ) a = bar ( ) AreEqual ( a . barfunc ( ) , a )
verify calling unbound method w/ new-style class on subclass which new-style also inherits from works .