#NEWLINE# def test_cloudformation_server_get( ) : #NEWLINE# #INDENT# backend = server . create_backend_app ( 'cloudformation' ) #NEWLINE# stack_name = 'test stack' #NEWLINE# test_client = backend . test_client ( ) #NEWLINE# template_body = { #NEWLINE# #INDENT# 'Resources' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# create_stack_resp = test_client . action_data ( 'CreateStack' , StackName = stack_name , TemplateBody = json . dumps ( template_body ) ) #NEWLINE# create_stack_resp . should . match ( '<CreateStackResponse>.*<CreateStackResult>.*<StackId>.*</StackId>.*</CreateStackResult>.*</CreateStackResponse>' , re . DOTALL ) #NEWLINE# stack_id_from_create_response = re . search ( '<StackId>(.*)</StackId>' , create_stack_resp ) . groups ( ) [ 0 ] #NEWLINE# list_stacks_resp = test_client . action_data ( 'ListStacks' ) #NEWLINE# stack_id_from_list_response = re . search ( '<StackId>(.*)</StackId>' , list_stacks_resp ) . groups ( ) [ 0 ] #NEWLINE# stack_id_from_create_response . should . equal ( stack_id_from_list_response )