#NEWLINE# @ test . create_stubs ( { #NEWLINE# #INDENT# neutronclient : ( 'list_pools' , 'list_vips' ) , #NEWLINE# api . neutron : ( 'subnet_list' , ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_pool_list( self ) : #NEWLINE# #INDENT# pools = { #NEWLINE# #INDENT# 'pools' : self . api_pools . list ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# subnets = self . subnets . list ( ) #NEWLINE# vips = { #NEWLINE# #INDENT# 'vips' : self . api_vips . list ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# neutronclient . list_pools ( ) . AndReturn ( pools ) #NEWLINE# api . neutron . subnet_list ( self . request ) . AndReturn ( subnets ) #NEWLINE# neutronclient . list_vips ( ) . AndReturn ( vips ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# ret_val = api . lbaas . pool_list ( self . request ) #NEWLINE# for v in ret_val : #NEWLINE# #INDENT# self . assertIsInstance ( v , api . lbaas . Pool ) #NEWLINE# self . assertTrue ( self . id )