def test_mixed_inheritance():
 class foo:
  pass
 class bar(object, ):
  pass
 class baz1(foo, bar, ):
  pass
 class baz2(bar, foo, ):
  pass
 AreEqual(baz1.__bases__, (foo, bar))
 AreEqual(baz2.__bases__, (bar, foo))
 class foo:
  abc = 3
 class bar(object, ):
  def get_abc():
   return 42
  def set_abc():
   pass
  abc = property(fget=get_abc, fset=set_abc)
 class baz(foo, bar, ):
  pass
 AreEqual(baz().abc, 3)

def test_mixed_inheritance ( ) : class foo : pass class bar ( object , ) : pass class baz1 ( foo , bar , ) : pass class baz2 ( bar , foo , ) : pass AreEqual ( baz1 . __bases__ , ( foo , bar ) ) AreEqual ( baz2 . __bases__ , ( bar , foo ) ) class foo : abc = 3 class bar ( object , ) : def get_abc ( ) : return 42 def set_abc ( ) : pass abc = property ( fget = get_abc , fset = set_abc ) class baz ( foo , bar , ) : pass AreEqual ( baz ( ) . abc , 3 )
inheritance from both old & new style classes .