#NEWLINE# def test_zone_info( self ) : #NEWLINE# #INDENT# caps = [ 'cap1=a;b' , 'cap2=c;d' ] #NEWLINE# self . flags ( zone_name = 'darksecret' , zone_capabilities = caps ) #NEWLINE# self . stubs . Set ( api , '_call_scheduler' , zone_capabilities ) #NEWLINE# body = dict ( zone = dict ( username = 'zeb' , password = 'sneaky' ) ) #NEWLINE# req = webob . Request . blank ( '/v1.0/zones/info' ) #NEWLINE# res = req . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# res_dict = json . loads ( res . body ) #NEWLINE# self . assertEqual ( res . status_int , 200 ) #NEWLINE# self . assertEqual ( res_dict [ 'zone' ] [ 'name' ] , 'darksecret' ) #NEWLINE# self . assertEqual ( res_dict [ 'zone' ] [ 'cap1' ] , 'a;b' ) #NEWLINE# self . assertEqual ( caps [ 'zone' ] [ 'cap2' ] , 'c;d' )