#NEWLINE# def test_verify_detailed_index( self ) : #NEWLINE# #INDENT# req = webob . Request . blank ( ( '/v1.1/123/os-simple-tenant-usage?detailed=1&start=%s&end=%s' % ( START . isoformat ( ) , STOP . isoformat ( ) ) ) ) #NEWLINE# req . method = 'GET' #NEWLINE# req . headers [ 'content-type' ] = 'application/json' #NEWLINE# res = req . get_response ( fakes . wsgi_app ( fake_auth_context = self . admin_context ) ) #NEWLINE# self . assertEqual ( res . status_int , 200 ) #NEWLINE# res_dict = json . loads ( res . body ) #NEWLINE# usages = res_dict [ 'tenant_usages' ] #NEWLINE# for i in xrange ( TENANTS ) : #NEWLINE# #INDENT# servers = usages [ i ] [ 'server_usages' ] #NEWLINE# for j in xrange ( SERVERS ) : #NEWLINE# #INDENT# self . assertEqual ( int ( servers [ j ] [ 'hours' ] ) , HOURS )