#NEWLINE# @ mock . patch ( 'nova.db.floating_ip_get_pools' ) #NEWLINE# def test_get_pool_names( self , get ) : #NEWLINE# #INDENT# get . return_value = [ { #NEWLINE# #INDENT# 'name' : 'a' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'name' : 'b' , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . assertEqual ( [ 'a' , 'b' ] , floating_ip . FloatingIP . get_pool_names ( self . context ) )