#NEWLINE# def test_openrc_set_region( self ) : #NEWLINE# #INDENT# context = { #NEWLINE# #INDENT# 'user' : FakeUser ( ) , #NEWLINE# 'tenant_id' : 'some-cool-id' , #NEWLINE# 'auth_url' : 'http://tests.com' , #NEWLINE# 'tenant_name' : 'Tenant' , #NEWLINE# 'region' : 'Colorado' , #NEWLINE# #UNINDENT# } #NEWLINE# out = loader . render_to_string ( 'project/access_and_security/api_access/openrc.sh.template' , out , template . Context ( context ) ) #NEWLINE# self . assertTrue ( ( 'OS_REGION_NAME="Colorado"' in out ) )