#NEWLINE# def test_get_regions( 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# regions = catalog . get_regions ( service_type = 'object-store' ) #NEWLINE# self . assertEqual ( regions , [ 'LON' , 'ORD' ] ) #NEWLINE# regions = catalog . get_regions ( service_type = 'invalid' ) #NEWLINE# self . assertEqual ( regions , [ ] )