def test_world_should_be_able_to_absorb_functions():
 assert (not hasattr(world, 'function1'))
 @world.absorb
 def function1():
  return 'absorbed'
 assert hasattr(world, 'function1')
 assert callable(world.function1)
 assert_equals(world.function1(), 'absorbed')
 world.spew('function1')
 assert (not hasattr(world, 'function1'))

def test_world_should_be_able_to_absorb_functions ( ) : assert ( not hasattr ( world , 'function1' ) ) @ world . absorb def function1 ( ) : return 'absorbed' assert hasattr ( world , 'function1' ) assert callable ( world . function1 ) assert_equals ( world . function1 ( ) , 'absorbed' ) world . spew ( 'function1' ) assert ( not hasattr ( world , 'function1' ) )
world should be able to absorb functions .