#NEWLINE# def test_fping_index_include( self ) : #NEWLINE# #INDENT# req = fakes . HTTPRequest . blank ( ( self . _get_url ( ) + '/os-fping' ) ) #NEWLINE# res_dict = self . controller . index ( req ) #NEWLINE# ids = [ srv [ 'id' ] for srv in res_dict [ 'servers' ] ] #NEWLINE# req = fakes . HTTPRequest . blank ( ( self . _get_url ( ) + ( '/os-fping?include=%s' % ids [ 0 ] ) ) ) #NEWLINE# res_dict = self . controller . index ( req ) #NEWLINE# self . assertEqual ( len ( res_dict [ 'servers' ] ) , 1 ) #NEWLINE# self . assertEqual ( res_dict [ 'servers' ] [ 0 ] [ 'id' ] , ids [ 0 ] )