def test_world_should_be_able_to_absorb_classs():
 assert (not hasattr(world, 'MyClass'))
 if (sys.version_info < (2, 6)):
  return
 class MyClass:
  pass
 world.absorb(MyClass)
 assert hasattr(world, 'MyClass')
 assert_equals(world.MyClass, MyClass)
 assert isinstance(world.MyClass(), MyClass)
 world.spew('MyClass')
 assert (not hasattr(world, 'MyClass'))

def test_world_should_be_able_to_absorb_classs ( ) : assert ( not hasattr ( world , 'MyClass' ) ) if ( sys . version_info < ( 2 , 6 ) ) : return class MyClass : pass world . absorb ( MyClass ) assert hasattr ( world , 'MyClass' ) assert_equals ( world . MyClass , MyClass ) assert isinstance ( world . MyClass ( ) , MyClass ) world . spew ( 'MyClass' ) assert ( not hasattr ( world , 'MyClass' ) )
world should be able to absorb class .