diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-02-03 15:03:17 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-04 09:03:40 -0500 |
commit | 98d4644bff67a6545cada8364c84b43e2a99fe62 (patch) | |
tree | 46ab8a3f30bd11b7ca1a8780c0c57da75330f437 /tests/test_xmlrpc/test_automount_plugin.py | |
parent | 2d7e0de5ea7a2923708006bc58dae4b35b65fe63 (diff) | |
download | freeipa-98d4644bff67a6545cada8364c84b43e2a99fe62.tar.gz freeipa-98d4644bff67a6545cada8364c84b43e2a99fe62.tar.xz freeipa-98d4644bff67a6545cada8364c84b43e2a99fe62.zip |
Fix remaining issues with XML-RPC test cases
Tied the make-test script into the test target of the top-level Makefile
Added code to xmlrpc_test.py so that it configures the API if it isn't
already done which enables individual tests to be executed.
Diffstat (limited to 'tests/test_xmlrpc/test_automount_plugin.py')
-rw-r--r-- | tests/test_xmlrpc/test_automount_plugin.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/test_xmlrpc/test_automount_plugin.py b/tests/test_xmlrpc/test_automount_plugin.py index fde86629f..4f9b9fdca 100644 --- a/tests/test_xmlrpc/test_automount_plugin.py +++ b/tests/test_xmlrpc/test_automount_plugin.py @@ -24,18 +24,18 @@ Test the `ipalib/plugins/f_automount' module. import sys from xmlrpc_test import XMLRPC_test from ipalib import api -from ipalib import errors +from ipalib import errors2 class test_Service(XMLRPC_test): """ Test the `f_automount` plugin. """ - mapname='testmap' - keyname='testkey' - keyname2='secondkey' - description='description of map' - info='ro' + mapname=u'testmap' + keyname=u'testkey' + keyname2=u'secondkey' + description=u'description of map' + info=u'ro' map_kw={'automountmapname': mapname, 'description': description} key_kw={'automountmapname': mapname, 'automountkey': keyname, 'automountinformation': info} key_kw2={'automountmapname': mapname, 'automountkey': keyname2, 'automountinformation': info} @@ -116,8 +116,8 @@ class test_Service(XMLRPC_test): """ Test the `xmlrpc.automount_modkey` method. """ - self.key_kw['automountinformation'] = 'rw' - self.key_kw['description'] = 'new description' + self.key_kw['automountinformation'] = u'rw' + self.key_kw['description'] = u'new description' res = api.Command['automount_modkey'](**self.key_kw) assert res assert res.get('automountkey','') == self.keyname @@ -128,11 +128,11 @@ class test_Service(XMLRPC_test): """ Test the `xmlrpc.automount_modmap` method. """ - self.map_kw['description'] = 'new description' + self.map_kw['description'] = u'new description' res = api.Command['automount_modmap'](**self.map_kw) assert res assert res.get('automountmapname','') == self.mapname - assert res.get('description','') == 'new description' + assert res.get('description','') == u'new description' def test_remove1key(self): """ @@ -182,10 +182,10 @@ class test_Indirect(XMLRPC_test): """ Test the `f_automount` plugin Indirect map function. """ - mapname='auto.home' - keyname='/home' - parentmap='auto.master' - description='Home directories' + mapname=u'auto.home' + keyname=u'/home' + parentmap=u'auto.master' + description=u'Home directories' map_kw={'automountkey': keyname, 'parentmap': parentmap, 'description': description} def test_add_indirect(self): |