#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# flexmock ( AppScaleLogger ) #NEWLINE# AppScaleLogger . should_receive ( 'log' ) . and_return ( ) #NEWLINE# for credential in EC2Agent . REQUIRED_CREDENTIALS : #NEWLINE# #INDENT# os . environ [ fake_ec2 ] = 'baz' #NEWLINE# #UNINDENT# fake_ec2 = flexmock ( name = 'fake_ec2' ) #NEWLINE# fake_ec2 . should_receive ( 'get_image' ) . with_args ( 'ami-ABCDEFG' ) . and_return ( ) #NEWLINE# flexmock ( boto ) #NEWLINE# boto . should_receive ( 'connect_ec2' ) . with_args ( 'baz' , 'baz' ) . and_return ( fake_ec2 ) #NEWLINE# self . blank_input_yaml = None #NEWLINE# self . default_options = { #NEWLINE# #INDENT# 'table' : 'cassandra' , #NEWLINE# #UNINDENT# } #NEWLINE# self . ip_1 = '192.168.1.1' #NEWLINE# self . ip_2 = '192.168.1.2' #NEWLINE# self . ip_3 = '192.168.1.3' #NEWLINE# self . ip_4 = '192.168.1.4' #NEWLINE# self . ip_5 = '192.168.1.5' #NEWLINE# self . ip_6 = '192.168.1.6' #NEWLINE# self . ip_7 = '192.168.1.7' #NEWLINE# self . ip_8 = '192.168.1.8'