#NEWLINE# @ patch . object ( OpenStackCloud , '_has_nova_extension' ) #NEWLINE# @ patch . object ( OpenStackCloud , 'nova_client' ) #NEWLINE# def test_list_floating_ip_pools( self , mock_nova_client , mock__has_nova_extension ) : #NEWLINE# #INDENT# mock_nova_client . floating_ip_pools . list . return_value = [ FakeFloatingIPPool ( ** p ) for p in self . mock_pools ] #NEWLINE# mock__has_nova_extension . return_value = True #NEWLINE# floating_ip_pools = self . client . list_floating_ip_pools ( ) #NEWLINE# self . assertItemsEqual ( floating_ip_pools , self . mock_pools )