Commit 030f4522 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added a test to make sure that default values passed as argument are not taken...

Added a test to make sure that default values passed as argument are not taken into account if category is defined.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16730 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eaa36137
......@@ -191,9 +191,12 @@ class TestCMFCategory(ERP5TypeTestCase):
p1 = self.getPersonModule()._getOb(self.id1)
p1.setRegion(self.region1)
self.assertEqual(p1.getRegion(),self.region1)
self.assertEqual(p1.getDefaultRegion(),self.region1)
self.assertEqual(p1.getRegionList(),[self.region1])
self.assertEqual(p1.getRegion(), self.region1)
self.assertEqual(p1.getRegion('foo'), self.region1)
self.assertEqual(p1.getDefaultRegion(), self.region1)
self.assertEqual(p1.getDefaultRegion('foo'), self.region1)
self.assertEqual(p1.getRegionList(), [self.region1])
self.assertEqual(p1.getRegionList(['foo']), [self.region1])
def test_02_MultipleCategory(self, quiet=quiet, run=run_all_test):
# Test if multiple categories are working
......
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