#NEWLINE# def testRelocateWithAppScalefile( self ) : #NEWLINE# #INDENT# appscale = AppScale ( ) #NEWLINE# contents = { #NEWLINE# #INDENT# 'infrastructure' : 'ec2' , #NEWLINE# 'machine' : 'ami-ABCDEFG' , #NEWLINE# 'keyname' : 'bookey' , #NEWLINE# 'group' : 'boogroup' , #NEWLINE# 'verbose' : True , #NEWLINE# 'min' : 1 , #NEWLINE# 'max' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# yaml_dumped_contents = yaml . dump ( contents ) #NEWLINE# self . addMockForAppScalefile ( appscale , yaml_dumped_contents ) #NEWLINE# flexmock ( AppScaleTools ) #NEWLINE# AppScaleTools . should_receive ( 'relocate_app' ) #NEWLINE# appscale . relocate ( 'myapp' , 80 , 443 )