Commit e36d524e authored by Aurel's avatar Aurel

set source reference


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13717 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c47c663f
......@@ -130,6 +130,11 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
start_date=self.date,
reference_range_min=51,
source_total_asset_price=20000)
# set source reference
self.setDocumentSourceReference(self.stop_payment)
# check source reference
self.assertNotEqual(self.stop_payment.getSourceReference(), '')
self.assertNotEqual(self.stop_payment.getSourceReference(), None)
# check its portal type
self.assertEqual(self.stop_payment.getPortalType(), 'Stop Payment')
# check source
......
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