summaryrefslogtreecommitdiffstats
path: root/tests/functional/test_wap_client/test_006_form_value_select_options.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/test_wap_client/test_006_form_value_select_options.py')
-rw-r--r--tests/functional/test_wap_client/test_006_form_value_select_options.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functional/test_wap_client/test_006_form_value_select_options.py b/tests/functional/test_wap_client/test_006_form_value_select_options.py
index 92b4992..0f2bbdd 100644
--- a/tests/functional/test_wap_client/test_006_form_value_select_options.py
+++ b/tests/functional/test_wap_client/test_006_form_value_select_options.py
@@ -6,6 +6,7 @@ from pykolab import wap_client
conf = pykolab.getConf()
+
class TestFormValueListOptions(unittest.TestCase):
def test_001_list_options_user_preferredlanguage(self):
@@ -24,8 +25,7 @@ class TestFormValueListOptions(unittest.TestCase):
'preferredlanguage'
)
- self.assertTrue(attribute_values['preferredlanguage'].has_key('default'))
- self.assertTrue(attribute_values['preferredlanguage'].has_key('list'))
+ self.assertTrue('default' in attribute_values['preferredlanguage'])
+ self.assertTrue('list' in attribute_values['preferredlanguage'])
self.assertTrue(len(attribute_values['preferredlanguage']['list']) > 1)
self.assertTrue(attribute_values['preferredlanguage']['default'] in attribute_values['preferredlanguage']['list'])
-