summaryrefslogtreecommitdiffstats
path: root/funcweb
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-12 11:20:40 +0300
committermakkalot <makkalot@gmail.com>2008-06-12 11:20:40 +0300
commite21ab672adc4076ef3e9068db5420787802556b4 (patch)
treea6b8812b1270a32bd77ac428e948c0a5b642812d /funcweb
parent94b741de46ba38c19ebcf5df55e8256cd3dc6d02 (diff)
downloadthird_party-func-e21ab672adc4076ef3e9068db5420787802556b4.tar.gz
third_party-func-e21ab672adc4076ef3e9068db5420787802556b4.tar.xz
third_party-func-e21ab672adc4076ef3e9068db5420787802556b4.zip
adding tests for specialized cases
Diffstat (limited to 'funcweb')
-rw-r--r--funcweb/funcweb/tests/test_widget_automation.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/funcweb/funcweb/tests/test_widget_automation.py b/funcweb/funcweb/tests/test_widget_automation.py
index 964df3c..0adbc1f 100644
--- a/funcweb/funcweb/tests/test_widget_automation.py
+++ b/funcweb/funcweb/tests/test_widget_automation.py
@@ -20,7 +20,7 @@ class TestWidgetListFactory(unittest.TestCase):
compare_with = self.get_test_default_args()
widget_list=self.widget_factory.get_widgetlist()
- #print "The widget list is like :",widget_list
+ print "The widget list is like :",widget_list
for argument_name,argument_options in compare_with.iteritems():
assert widget_list.has_key(argument_name) == True
@@ -32,6 +32,9 @@ class TestWidgetListFactory(unittest.TestCase):
if argument_options.has_key("description"):
assert argument_options['description']==getattr(widget_list[argument_name],'help_text')
+ if argument_options.has_key("options"):
+ assert argument_options['options'] == getattr(widget_list[argument_name],"options")
+
#that should be enough
def get_test_default_args(self):
@@ -74,6 +77,14 @@ class TestWidgetListFactory(unittest.TestCase):
'optional':False,
'description':'default description'
+ },
+ #will be converted to dropdown
+ 'special_string':{
+ 'type':'string',
+ 'default':'myfirst',
+ 'options':['myfirst','mysecond','mythird'],
+ 'optional':False,
+ 'description':'default dropdown list'
}
}