#NEWLINE# def test_list_locations( self ) : #NEWLINE# #INDENT# locations = self . driver . list_locations ( ) #NEWLINE# location_names = [ location . name for location in locations ] #NEWLINE# self . assertEqual ( len ( locations ) , 2 ) #NEWLINE# for i in ( 0 , 1 ) : #NEWLINE# #INDENT# self . assertTrue ( isinstance ( location_names [ i ] , NodeLocation ) ) #NEWLINE# #UNINDENT# self . assertTrue ( ( 'US-West-1' in location_names ) ) #NEWLINE# self . assertTrue ( ( 'US-East-1' in location_names ) )