From f468a8918e744cf96231f341412e3464fa157941 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 15 Sep 2006 13:29:47 +0000 Subject: [PATCH] tests that Deliveries have the price_currency category. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9996 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testPackingList.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testPackingList.py b/product/ERP5/tests/testPackingList.py index 79154cbce2..4d8dc2ec93 100644 --- a/product/ERP5/tests/testPackingList.py +++ b/product/ERP5/tests/testPackingList.py @@ -907,12 +907,16 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : sequence_list.play(self, quiet=quiet) def test_14_PackingListHavePriceCurrencyCategory(self, quiet=quiet, - run=run_all_test): + run=1): #run_all_test): """Deliveries must have a price currency category. #252 """ if not run: return - + pl = self.getPortal().getDefaultModule(self.packing_list_portal_type + ).newContent(portal_type=self.packing_list_portal_type) + self.failUnless(hasattr(pl, 'getPriceCurrency')) + + if __name__ == '__main__': framework() else: -- 2.30.9