def test_parse_null_as_none():
 initialize()
 yamlfile = '{\n             "model": !obj:pylearn2.models.autoencoder.Autoencoder {\n\n                 "nvis" : 1024,\n                 "nhid" : 64,\n                 "act_enc" : Null,\n                 "act_dec" : null\n\n             }\n    }'
 load(yamlfile)

def test_parse_null_as_none ( ) : initialize ( ) yamlfile = '{\n             "model": !obj:pylearn2.models.autoencoder.Autoencoder {\n\n                 "nvis" : 1024,\n                 "nhid" : 64,\n                 "act_enc" : Null,\n                 "act_dec" : null\n\n             }\n    }' load ( yamlfile )
tests whether none may be passed via yaml kwarg null .