def test_instantiate_regression():
 yaml = "{'a': &test !obj:pylearn2.config.tests.test_yaml_parse.DumDum {}, 'b': *test}"
 obj = load(yaml)
 assert (obj['a'] is obj['b'])

def test_instantiate_regression ( ) : yaml = "{'a': &test !obj:pylearn2.config.tests.test_yaml_parse.DumDum {}, 'b': *test}" obj = load ( yaml ) assert ( obj [ 'a' ] is obj [ 'b' ] )
test a case where instantiated objects were not getting correctly reused across references .