def test_world_should_be_able_to_absorb_lambdas():
 assert (not hasattr(world, 'named_func'))
 world.absorb((lambda : 'absorbed'), 'named_func')
 assert hasattr(world, 'named_func')
 assert callable(world.named_func)
 assert_equals(world.named_func(), 'absorbed')
 world.spew('named_func')
 assert (not hasattr(world, 'named_func'))

def test_world_should_be_able_to_absorb_lambdas ( ) : assert ( not hasattr ( world , 'named_func' ) ) world . absorb ( ( lambda : 'absorbed' ) , 'named_func' ) assert hasattr ( world , 'named_func' ) assert callable ( world . named_func ) assert_equals ( world . named_func ( ) , 'absorbed' ) world . spew ( 'named_func' ) assert ( not hasattr ( world , 'named_func' ) )
world should be able to absorb lambdas .