Commit fa986c21 authored by Ivan Tyagov's avatar Ivan Tyagov

ERP5Site_getActiveKnowledgePadForUser is the new generic way which should be tested.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40930 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 924461c7
...@@ -214,7 +214,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -214,7 +214,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
mode='web_section', mode='web_section',
default_pad_group = pad_group) default_pad_group = pad_group)
base_websection_pad, websection_pads = \ base_websection_pad, websection_pads = \
websection.WebSite_getActiveKnowledgePadForUser(websection_pads, websection.ERP5Site_getActiveKnowledgePadForUser(websection_pads,
default_pad_group = pad_group) default_pad_group = pad_group)
# Check stick # Check stick
...@@ -225,7 +225,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -225,7 +225,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
mode='web_section', mode='web_section',
default_pad_group = pad_group) default_pad_group = pad_group)
current_websection_pad, websection_pads = \ current_websection_pad, websection_pads = \
websection.WebSite_getActiveKnowledgePadForUser(websection_pads, websection.ERP5Site_getActiveKnowledgePadForUser(websection_pads,
default_pad_group = pad_group) default_pad_group = pad_group)
self.assertNotEqual(base_websection_pad.getObject(), self.assertNotEqual(base_websection_pad.getObject(),
current_websection_pad.getObject()) current_websection_pad.getObject())
...@@ -237,7 +237,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -237,7 +237,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
mode='web_section', mode='web_section',
default_pad_group = pad_group) default_pad_group = pad_group)
current_websection_pad, websection_pads = \ current_websection_pad, websection_pads = \
websection.WebSite_getActiveKnowledgePadForUser(websection_pads, websection.ERP5Site_getActiveKnowledgePadForUser(websection_pads,
default_pad_group = pad_group) default_pad_group = pad_group)
self.assertEqual(base_websection_pad.getObject(), self.assertEqual(base_websection_pad.getObject(),
current_websection_pad.getObject()) current_websection_pad.getObject())
......
1709 1710
\ No newline at end of file
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