Commit f55dcb87 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Adapt modules names to the naming convention.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4355 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 961f6e9b
...@@ -367,9 +367,9 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase): ...@@ -367,9 +367,9 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
def getUserFolder(self): def getUserFolder(self):
return getattr(self.getPortal(), 'acl_users', None) return getattr(self.getPortal(), 'acl_users', None)
def getPersonModule(self): def getPersonModule(self):
return getattr(self.getPortal(), 'person', None) return getattr(self.getPortal(), 'person_module', None)
def getOrganisationModule(self): def getOrganisationModule(self):
return getattr(self.getPortal(), 'organisation', None) return getattr(self.getPortal(), 'organisation_module', None)
def getCurrencyCashModule(self): def getCurrencyCashModule(self):
return getattr(self.getPortal(), 'currency_cash_module', None) return getattr(self.getPortal(), 'currency_cash_module', None)
def getCashTransferModule(self): def getCashTransferModule(self):
...@@ -377,7 +377,7 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase): ...@@ -377,7 +377,7 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
def getInternalPackingListModule(self): def getInternalPackingListModule(self):
return getattr(self.getPortal(), 'internal_packing_list_module', None) return getattr(self.getPortal(), 'internal_packing_list_module', None)
def getCurrencyModule(self): def getCurrencyModule(self):
return getattr(self.getPortal(), 'currency', None) return getattr(self.getPortal(), 'currency_module', None)
def getCategoryTool(self): def getCategoryTool(self):
return getattr(self.getPortal(), 'portal_categories', None) return getattr(self.getPortal(), 'portal_categories', None)
def getWorkflowTool(self): def getWorkflowTool(self):
...@@ -407,17 +407,17 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase): ...@@ -407,17 +407,17 @@ class TestERP5BankingCashTransfer(ERP5TypeTestCase):
# check that Resources were created # check that Resources were created
self.assertEqual(self.billet_10000.getPortalType(), 'Banknote') self.assertEqual(self.billet_10000.getPortalType(), 'Banknote')
self.assertEqual(self.billet_10000.getBasePrice(), 10000) self.assertEqual(self.billet_10000.getBasePrice(), 10000)
self.assertEqual(self.billet_10000.getPriceCurrency(), 'currency/EUR') self.assertEqual(self.billet_10000.getPriceCurrency(), 'currency_module/EUR')
self.assertEqual(self.billet_10000.getVariationList(), ['1992', '2003']) self.assertEqual(self.billet_10000.getVariationList(), ['1992', '2003'])
self.assertEqual(self.billet_5000.getPortalType(), 'Banknote') self.assertEqual(self.billet_5000.getPortalType(), 'Banknote')
self.assertEqual(self.billet_5000.getBasePrice(), 5000) self.assertEqual(self.billet_5000.getBasePrice(), 5000)
self.assertEqual(self.billet_5000.getPriceCurrency(), 'currency/EUR') self.assertEqual(self.billet_5000.getPriceCurrency(), 'currency_module/EUR')
self.assertEqual(self.billet_5000.getVariationList(), ['1992', '2003']) self.assertEqual(self.billet_5000.getVariationList(), ['1992', '2003'])
self.assertEqual(self.piece_200.getPortalType(), 'Coin') self.assertEqual(self.piece_200.getPortalType(), 'Coin')
self.assertEqual(self.piece_200.getBasePrice(), 200) self.assertEqual(self.piece_200.getBasePrice(), 200)
self.assertEqual(self.piece_200.getPriceCurrency(), 'currency/EUR') self.assertEqual(self.piece_200.getPriceCurrency(), 'currency_module/EUR')
self.assertEqual(self.piece_200.getVariationList(), ['1992', '2003']) self.assertEqual(self.piece_200.getVariationList(), ['1992', '2003'])
# check that CashTransfer Module was created # check that CashTransfer Module was created
......
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