#NEWLINE# @ mock . patch ( CLIENTS_CLASS ) #NEWLINE# def test_update( self , mock_clients ) : #NEWLINE# #INDENT# instance = manila_quotas . ManilaQuotas ( tenant_id ) #NEWLINE# tenant_id = mock . MagicMock ( ) #NEWLINE# quotas_values = { #NEWLINE# #INDENT# 'shares' : 10 , #NEWLINE# 'gigabytes' : 13 , #NEWLINE# 'snapshots' : 7 , #NEWLINE# 'snapshot_gigabytes' : 51 , #NEWLINE# 'share_networks' : 1014 , #NEWLINE# #UNINDENT# } #NEWLINE# instance . update ( tenant_id , ** quotas_values ) #NEWLINE# mock_clients . manila . return_value . quotas . update . assert_called_once_with ( tenant_id , ** quotas_values )