def test_name():
 class C(object, ):
  pass
 C.__name__ = 'abc'
 AreEqual(C.__name__, 'abc')

def test_name ( ) : class C ( object , ) : pass C . __name__ = 'abc' AreEqual ( C . __name__ , 'abc' )
setting __name__ on a class should work .