<s> s3gis_tests = load_module ( "<STR_LIT>" ) <EOL> test_utils = local_import ( "<STR_LIT>" ) <EOL> google_layer = dict ( <EOL> name = "<STR_LIT>" , <EOL> description = "<STR_LIT>" , <EOL> enabled = True , <EOL> created_on = datetime . datetime . now ( ) , <EOL> modified_on = datetime . datetime . now ( ) , <EOL> satellite_enabled = True , <EOL> maps_enabled = True , <EOL> hybrid_enabled = True , <EOL> mapmaker_enabled = True , <EOL> mapmakerhybrid_enabled = True , <EOL> earth_enabled = True , <EOL> streetview_enabled = True , <EOL> apikey = "<STR_LIT>" , <EOL> ) <EOL> def test_GoogleLayer ( ) : <EOL> def check_output ( actual_output ) : <EOL> script = "<STR_LIT:\n>" . join ( ( <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ) ) <EOL> assert script in actual_output <EOL> s3gis_tests . layer_test ( <EOL> db , <EOL> db . gis_layer_google , <EOL> google_layer , <EOL> "<STR_LIT>" , <EOL> { <EOL> "<STR_LIT>" : u"<STR_LIT>" , <EOL> "<STR_LIT>" : u"<STR_LIT>" , <EOL> "<STR_LIT>" : u"<STR_LIT>" , <EOL> "<STR_LIT>" : u"<STR_LIT>" , <EOL> "<STR_LIT>" : u"<STR_LIT>" , <EOL> "<STR_LIT>" : u"<STR_LIT>" , <EOL> } , <EOL> session = session , <EOL> request = request , <EOL> check_output = check_output <EOL> ) <EOL> def check_scripts ( debug , scripts ) : <EOL> with s3gis_tests . Change ( current . session . s3 , { "<STR_LIT>" : debug } ) : <EOL> with s3gis_tests . InsertedRecord ( <EOL> db , <EOL> db . gis_layer_google , <EOL> google_layer <EOL> ) : <EOL> with s3gis_tests . AddedRole ( session , session . s3 . system_roles . MAP_ADMIN ) : <EOL> actual_output = str ( <EOL> s3base . GIS ( ) . show_map ( <EOL> window = True , <EOL> catalogue_toolbar = True , <EOL> toolbar = True , <EOL> search = True , <EOL> catalogue_layers = True , <EOL> projection = <NUM_LIT> , <EOL> ) <EOL> ) <EOL> s3gis_tests . check_scripts ( actual_output , scripts , request ) <EOL> def test_google_deployment_scripts ( ) : <EOL> check_scripts ( <EOL> False , <EOL> [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] <EOL> ) <EOL> def test_debug_scripts ( ) : <EOL> check_scripts ( <EOL> True , <EOL> [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] <EOL> ) </s>
