Commit 2de113f8 authored by Yusei Tahara's avatar Yusei Tahara

Added a assertion for obsolete variable migration check.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 03c958b5
...@@ -82,6 +82,7 @@ class TestProxify(unittest.TestCase): ...@@ -82,6 +82,7 @@ class TestProxify(unittest.TestCase):
person_view.my_name.values['size'] = 20 person_view.my_name.values['size'] = 20
person_view.my_default_region.values['size'] = 1 person_view.my_default_region.values['size'] = 1
person_view.my_default_region.tales['items'] = TALESMethod('here/portal_categories/region/getCategoryChildTranslatedLogicalPathItemList') person_view.my_default_region.tales['items'] = TALESMethod('here/portal_categories/region/getCategoryChildTranslatedLogicalPathItemList')
person_view.my_default_region.values['scrap_variable'] = 'obsolete'
global request global request
request = DummyRequest() request = DummyRequest()
...@@ -128,6 +129,8 @@ class TestProxify(unittest.TestCase): ...@@ -128,6 +129,8 @@ class TestProxify(unittest.TestCase):
self.assertEqual(field.is_delegated('description'), True) self.assertEqual(field.is_delegated('description'), True)
self.assertEqual(field.get_value('description'), '') self.assertEqual(field.get_value('description'), '')
self.assertEqual(field.has_value('scrap_variable'), 0)
template_field = self.address_view.my_region template_field = self.address_view.my_region
template_field.values['title'] = 'Region' template_field.values['title'] = 'Region'
self.assertEqual(field.get_value('title'), 'Region') self.assertEqual(field.get_value('title'), 'Region')
......
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