[Erp5-report] r46037 arnaud.fontaine - /erp5/trunk/utils/erp5diff/src/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Dec 16 11:08:53 CET 2011
Author: arnaud.fontaine
Date: Fri Dec 16 11:08:53 2011
New Revision: 46037
URL: http://svn.erp5.org?rev=46037&view=rev
Log:
Remove duplicated test.
Modified:
erp5/trunk/utils/erp5diff/src/tests/erp5diff_test_suite.py
Modified: erp5/trunk/utils/erp5diff/src/tests/erp5diff_test_suite.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5diff/src/tests/erp5diff_test_suite.py?rev=46037&r1=46036&r2=46037&view=diff
==============================================================================
--- erp5/trunk/utils/erp5diff/src/tests/erp5diff_test_suite.py [utf8] (original)
+++ erp5/trunk/utils/erp5diff/src/tests/erp5diff_test_suite.py [utf8] Fri Dec 16 11:08:53 2011
@@ -645,56 +645,8 @@ class TestERP5Diff(unittest.TestCase):
self._assertERP5DiffWorks(old_xml, new_xml, expected_result_string)
- def test_remove_element_with_same_id_bis(self):
- """21. Modify two elements that have same id
- """
- old_xml = """
-<erp5>
- <object portal_type="Person" id="313730">
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/28 19:12:34.424 GMT+9</time>
- </workflow_action>
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/28 19:12:34.432 GMT+9</time>
- </workflow_action>
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/28 19:12:34.434 GMT+9</time>
- </workflow_action>
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/28 19:12:34.436 GMT+9</time>
- </workflow_action>
- </object>
-</erp5>
-"""
- new_xml = """
-<erp5>
- <object portal_type="Person" id="313730">
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/28 19:12:34.424 GMT+9</time>
- </workflow_action>
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/29 19:12:34.432 GMT+9</time>
- </workflow_action>
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/30 19:12:34.434 GMT+9</time>
- </workflow_action>
- <workflow_action id="edit_workflow">
- <time type="date">2009/08/31 19:12:34.436 GMT+9</time>
- </workflow_action>
- </object>
-</erp5>
-"""
- expected_result_string = """<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
- <xupdate:update select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][2]/time">2009/08/29 19:12:34.432 GMT+9</xupdate:update>
- <xupdate:update select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][3]/time">2009/08/30 19:12:34.434 GMT+9</xupdate:update>
- <xupdate:update select="/erp5/object[@id='313730']/workflow_action[@id='edit_workflow'][4]/time">2009/08/31 19:12:34.436 GMT+9</xupdate:update>
-</xupdate:modifications>
-"""
-
- self._assertERP5DiffWorks(old_xml, new_xml, expected_result_string)
-
def test_modify_attributes_of_sequential_objects(self):
- """22. Modify attributes of sequencial objects
+ """21. Modify attributes of sequencial objects
"""
old_xml = """
@@ -732,7 +684,7 @@ class TestERP5Diff(unittest.TestCase):
self._assertERP5DiffWorks(old_xml, new_xml, expected_result_string)
def test_nodes_with_qnames(self):
- """23. Modify nodes with Qualified Names
+ """22. Modify nodes with Qualified Names
ERP5Diff should create xpath valid expression with correct prefix
"""
old_xml = """
@@ -792,7 +744,7 @@ class TestERP5Diff(unittest.TestCase):
self._assertERP5DiffWorks(old_xml, new_xml, expected_result_string)
def test_attibutes_with_qnames(self):
- """24. Modify nodes with Qualified Names
+ """23. Modify nodes with Qualified Names
Works on Attributes specially
"""
@@ -818,7 +770,7 @@ class TestERP5Diff(unittest.TestCase):
self._assertERP5DiffWorks(old_xml, new_xml, expected_result_string)
def test_attibutes_with_qnames_at_root_level(self):
- """25. Modify nodes with Qualified Names at root level
+ """24. Modify nodes with Qualified Names at root level
Work on Attributes specially
"""
old_xml = """
@@ -845,7 +797,7 @@ class TestERP5Diff(unittest.TestCase):
self._assertERP5DiffWorks(old_xml, new_xml, expected_result_string)
def test_reoder_nodes_to_the_end(self):
- """26. Reorder some nodes to the end of list
+ """25. Reorder some nodes to the end of list
"""
old_xml = """
<ul>
More information about the Erp5-report
mailing list