#NEWLINE# def test_list_services( self ) : #NEWLINE# #INDENT# service = self . operator_cloud . create_service ( name = ( self . new_service_name + '_list' ) , type = 'test_type' ) #NEWLINE# observed_services = self . operator_cloud . list_services ( ) #NEWLINE# self . assertIsInstance ( observed_services , list ) #NEWLINE# found = False #NEWLINE# for s in observed_services : #NEWLINE# #INDENT# if ( s [ 'id' ] == service [ 'id' ] ) : #NEWLINE# #INDENT# self . assertEqual ( ( self . new_service_name + '_list' ) , s . get ( 'name' ) ) #NEWLINE# self . assertEqual ( 'test_type' , s . get ( 'type' ) ) #NEWLINE# found = True #NEWLINE# #UNINDENT# #UNINDENT# self . assertTrue ( found , msg = 'new service not found in service list!' )