Commit 094f01b9 authored by Sebastien Robin's avatar Sebastien Robin

fixed quantity_unit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10444 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bfef2c7b
......@@ -81,11 +81,11 @@ class TestERP5BankingCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase):
need to be installed to run the test on.
"""
return ('erp5_base',
'baobab_unit_test',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'currency_exchange_patch',
'erp5_banking_currency_purchase-0.1.bt5')
'erp5_banking_cash')
def afterSetUp(self):
......@@ -234,7 +234,7 @@ class TestERP5BankingCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase):
# chek the value of the banknote
self.assertEqual(self.valid_incoming_line.getPrice(), 20.0)
# check the unit of banknote
self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'quantity_unit/unit')
self.assertEqual(self.valid_incoming_line.getQuantityUnit(), 'unit')
# check we have two delivery cells: (one for year 1992 and one for 2003)
self.assertEqual(len(self.valid_incoming_line.objectValues()), 1)
# now check for each variation (years 1992 and 2003)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment