#NEWLINE# def test_get_service_names( self ) : #NEWLINE# #INDENT# data = self . fixtures . load ( '_v2_0__auth.json' ) #NEWLINE# data = json . loads ( data ) #NEWLINE# service_catalog = data [ 'access' ] [ 'serviceCatalog' ] #NEWLINE# catalog = OpenStackServiceCatalog ( service_catalog = service_catalog , auth_version = '2.0' ) #NEWLINE# service_names = catalog . get_service_names ( ) #NEWLINE# self . assertEqual ( service_names , [ 'cloudFiles' , 'cloudFilesCDN' , 'cloudServers' , 'cloudServersOpenStack' , 'cloudServersPreprod' , 'nova' ] ) #NEWLINE# service_names = catalog . get_service_names ( service_type = 'compute' ) #NEWLINE# self . assertEqual ( service_names , [ 'cloudServers' , 'cloudServersOpenStack' , 'cloudServersPreprod' , 'nova' ] )