def test_load_train_file():
 environ = {'PYLEARN2_DATA_PATH': '/just/a/test/path/'}
 load_train_file((yaml_path + 'test_model.yaml'))
 load_train_file((yaml_path + 'test_model.yaml'), environ=environ)

def test_load_train_file ( ) : environ = { 'PYLEARN2_DATA_PATH' : '/just/a/test/path/' } load_train_file ( ( yaml_path + 'test_model.yaml' ) ) load_train_file ( ( yaml_path + 'test_model.yaml' ) , environ = environ )
loads a yaml file with and without environment variables .