Commit a44804ee authored by Aurel's avatar Aurel

defined source reference onto document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14133 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c9ce872
...@@ -173,6 +173,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -173,6 +173,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(self.mutilated_banknote.getSource(), 'site/testsite/paris') self.assertEqual(self.mutilated_banknote.getSource(), 'site/testsite/paris')
self.assertEqual(self.mutilated_banknote.getSourceTrade(), 'site/testsite/paris') self.assertEqual(self.mutilated_banknote.getSourceTrade(), 'site/testsite/paris')
self.assertEqual(self.mutilated_banknote.getDestination(), self.mutilated_banknote_vault.getRelativeUrl()) self.assertEqual(self.mutilated_banknote.getDestination(), self.mutilated_banknote_vault.getRelativeUrl())
# set source reference
self.setDocumentSourceReference(self.mutilated_banknote)
# check source reference
self.assertNotEqual(self.mutilated_banknote.getSourceReference(), '')
self.assertNotEqual(self.mutilated_banknote.getSourceReference(), None)
def stepTryStopWithNoLineDefined(self, sequence=None, sequence_list=None, **kw): def stepTryStopWithNoLineDefined(self, sequence=None, sequence_list=None, **kw):
""" """
...@@ -462,6 +468,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -462,6 +468,12 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(self.hq_mutilated_banknote.getSource(), 'site/testsite/siege') self.assertEqual(self.hq_mutilated_banknote.getSource(), 'site/testsite/siege')
self.assertEqual(self.hq_mutilated_banknote.getSourceTrade(), 'site/testsite/paris') self.assertEqual(self.hq_mutilated_banknote.getSourceTrade(), 'site/testsite/paris')
self.assertEqual(self.hq_mutilated_banknote.getDestination(), self.hq_mutilated_banknote_vault.getRelativeUrl()) self.assertEqual(self.hq_mutilated_banknote.getDestination(), self.hq_mutilated_banknote_vault.getRelativeUrl())
# set source reference
self.setDocumentSourceReference(self.hq_mutilated_banknote)
# check source reference
self.assertNotEqual(self.hq_mutilated_banknote.getSourceReference(), '')
self.assertNotEqual(self.hq_mutilated_banknote.getSourceReference(), None)
def stepTryStopHQWithNoLineDefined(self, sequence=None, sequence_list=None, **kw): def stepTryStopHQWithNoLineDefined(self, sequence=None, sequence_list=None, **kw):
""" """
......
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