Commit b9bc359b authored by Vincent Pelletier's avatar Vincent Pelletier

cash_movement.getBaobabDestination() might change depending on the lines...

cash_movement.getBaobabDestination() might change depending on the lines defined on the document. Only check it after adding those lines.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28867 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 882cf9f8
...@@ -144,7 +144,6 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM ...@@ -144,7 +144,6 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM
self.assertEqual(self.cash_movement.getPortalType(), 'Cash Movement New Not Emitted') self.assertEqual(self.cash_movement.getPortalType(), 'Cash Movement New Not Emitted')
self.assertEqual(self.cash_movement.getDestinationSection(), 'site/testsite/madrid') self.assertEqual(self.cash_movement.getDestinationSection(), 'site/testsite/madrid')
self.assertEqual(self.cash_movement.getBaobabSource(), 'site/testsite/paris/caveau/serre/encaisse_des_billets_neufs_non_emis_en_transit_allant_a/madrid') self.assertEqual(self.cash_movement.getBaobabSource(), 'site/testsite/paris/caveau/serre/encaisse_des_billets_neufs_non_emis_en_transit_allant_a/madrid')
self.assertEqual(self.cash_movement.getBaobabDestination(), 'site/testsite/madrid/caveau/serre/encaisse_des_billets_neufs_non_emis')
self.setDocumentSourceReference(self.cash_movement) self.setDocumentSourceReference(self.cash_movement)
...@@ -190,6 +189,7 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM ...@@ -190,6 +189,7 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM
self.stepTic() self.stepTic()
self.assertEqual(len(self.cash_movement.objectValues()), 3) self.assertEqual(len(self.cash_movement.objectValues()), 3)
self.assertEqual(self.cash_movement.getBaobabDestination(), 'site/testsite/madrid/caveau/serre/encaisse_des_billets_neufs_non_emis')
def stepStopDocument(self, sequence=None, sequence_list=None, **kwd): def stepStopDocument(self, sequence=None, sequence_list=None, **kwd):
""" """
......
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