summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-29 13:53:30 +0300
committermakkalot <makkalot@gmail.com>2008-06-29 13:53:30 +0300
commit896430d3492af9eee01eafc54891bcef5b2dffce (patch)
treedf7f1da05fc6f598f52122d4da2abe81f99d192b /funcweb
parent836cf17a8ec5ef5e36f3087730707395f3a0f2e6 (diff)
downloadfunc-896430d3492af9eee01eafc54891bcef5b2dffce.tar.gz
func-896430d3492af9eee01eafc54891bcef5b2dffce.tar.xz
func-896430d3492af9eee01eafc54891bcef5b2dffce.zip
minor change in test to not confuse the concepts
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/tests/test_widget_automation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/funcweb/funcweb/tests/test_widget_automation.py b/funcweb/funcweb/tests/test_widget_automation.py
index 90f60a2..36fc387 100644
--- a/funcweb/funcweb/tests/test_widget_automation.py
+++ b/funcweb/funcweb/tests/test_widget_automation.py
@@ -44,11 +44,11 @@ class TestWidgetListFactory(unittest.TestCase):
widget_list_object = self.widget_factory.get_widgetlist_object()
#not very efficient but works
#hash_widget_object should be a widgets.RepeatingFieldSet
- hash_widget_object = [h_obj for h_obj in widget_list_object if getattr(h_obj,'name')=='list_default'][0]
+ list_widget_object = [h_obj for h_obj in widget_list_object if getattr(h_obj,'name')=='list_default'][0]
- assert isinstance(hash_widget_object.fields[0],widgets.TextField) == True
- assert getattr(hash_widget_object.fields[0],'name') == 'listfield'
- assert getattr(hash_widget_object.fields[0],'label') == 'List Field'
+ assert isinstance(list_widget_object.fields[0],widgets.TextField) == True
+ assert getattr(list_widget_object.fields[0],'name') == 'listfield'
+ assert getattr(list_widget_object.fields[0],'label') == 'List Field'
def test_add_specialized_hash(self):