def test_update_account_update_called(self): z = Zuora(self.zuora_settings) z.client = mock.Mock() z.update = mock.Mock() response = mock.Mock() response.Success = True z.update.return_value = [response] z.update_account(account_id=mock.Mock(), update_dict={}) assert z.update.call_count == 1
def test_update_product_ammendment_update_called(self): z = Zuora(self.zuora_settings) z.client = mock.Mock() z.update = mock.Mock() response = mock.Mock() response.Success = True z.update.return_value = [response] z.update_product_amendment(effective_date=mock.Mock(), zAmendment=mock.Mock()) assert z.update.call_count == 1
def test_update_account_update_called(self): z = Zuora(self.zuora_settings) z.client = mock.Mock() z.update = mock.Mock() response = mock.Mock() response.Success = True z.update.return_value = [response] z.update_account(account_id=mock.Mock(), update_dict={}) assert z.update.call_count == 1
def test_update_product_ammendment_update_called(self): z = Zuora(self.zuora_settings) z.client = mock.Mock() z.update = mock.Mock() response = mock.Mock() response.Success = True z.update.return_value = [response] z.update_product_amendment(effective_date=mock.Mock(), zAmendment=mock.Mock()) assert z.update.call_count == 1
def test_create_active_account_get_payment_method_called(self): z = Zuora(self.zuora_settings) z.client = mock.Mock() z.get_payment_method = mock.Mock() z.update = mock.Mock() response = mock.Mock() response.Success = True z.update.return_value = [response] z.create_active_account(zAccount=mock.Mock(), zContact=mock.Mock(), payment_method_id=mock.Mock(), user=None, billing_address=None) assert z.get_payment_method.call_count == 1 assert z.update.call_count == 1
def test_create_active_account_get_payment_method_called(self): z = Zuora(self.zuora_settings) z.client = mock.Mock() z.get_payment_method = mock.Mock() z.update = mock.Mock() response = mock.Mock() response.Success = True z.update.return_value = [response] z.create_active_account(zAccount=mock.Mock(), zContact=mock.Mock(), payment_method_id=mock.Mock(), user=None, billing_address=None) assert z.get_payment_method.call_count == 1 assert z.update.call_count == 1