From f50c53c976cd7dcfe735a7244970d90b33f0244e Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 29 Oct 2009 12:37:56 +0000
Subject: [PATCH] check if source_project and destination_project are
 propagated (currently not).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30103 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testPackingList.py |  6 ++++++
 product/ERP5/tests/testXHTML.py       | 11 +++++++++++
 2 files changed, 17 insertions(+)

diff --git a/product/ERP5/tests/testPackingList.py b/product/ERP5/tests/testPackingList.py
index 3a15c8a490..678859732a 100644
--- a/product/ERP5/tests/testPackingList.py
+++ b/product/ERP5/tests/testPackingList.py
@@ -46,6 +46,8 @@ class TestPackingListMixin(TestOrderMixin):
                       stepCreateOrganisation1 \
                       stepCreateOrganisation2 \
                       stepCreateOrganisation3 \
+                      stepCreateProject1 \
+                      stepCreateProject2 \
                       stepCreateOrder \
                       stepCreateCurrency \
                       stepSetOrderPriceCurrency \
@@ -171,6 +173,10 @@ class TestPackingListMixin(TestOrderMixin):
                                        order.getSourceAdministration())
     self.assertEquals(packing_list.getPriceCurrency(), \
                                        order.getPriceCurrency())
+    self.assertEquals(packing_list.getDestinationProject(), \
+                                       order.getDestinationProject())
+    self.assertEquals(packing_list.getSourceProject(), \
+                                       order.getSourceProject())
 
   def stepCheckPackingListIsDivergent(self, sequence=None, sequence_list=None,
                                       packing_list=None,**kw):
diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py
index d1af4f2c17..ff5f6ef6f4 100644
--- a/product/ERP5/tests/testXHTML.py
+++ b/product/ERP5/tests/testXHTML.py
@@ -62,6 +62,17 @@ class TestXHTML(ERP5TypeTestCase):
     """  """
     return ( # dependency order
       'erp5_base',
+      'erp5_pdf_editor',
+      'erp5_ingestion',
+      'erp5_ingestion_mysql_innodb_catalog',
+      'erp5_web',
+      'erp5_dms',
+      'erp5_egov_mysql_innodb_catalog',
+      'erp5_egov',
+      )
+
+  def foo(self):
+    return ('erp5_base',
       'erp5_trade',
 
       'erp5_pdf_editor',
-- 
2.30.9