diff options
author | makkalot <makkalot@gmail.com> | 2008-06-01 19:05:03 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-06-01 19:05:03 +0300 |
commit | e8f7ed14ea4c1f82869253735cb861ac319ca4df (patch) | |
tree | c96c867435135b168255d5a4e05460cdf82a13dc | |
parent | 4a274173556d7366604160abbfeb57b51b4eb53b (diff) | |
download | third_party-func-e8f7ed14ea4c1f82869253735cb861ac319ca4df.tar.gz third_party-func-e8f7ed14ea4c1f82869253735cb861ac319ca4df.tar.xz third_party-func-e8f7ed14ea4c1f82869253735cb861ac319ca4df.zip |
some testing commits
-rw-r--r-- | func/minion/modules/func_module.py | 1 | ||||
-rw-r--r-- | test/unittest/test_client.py | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/func/minion/modules/func_module.py b/func/minion/modules/func_module.py index e2a47c3..813dcf2 100644 --- a/func/minion/modules/func_module.py +++ b/func/minion/modules/func_module.py @@ -95,7 +95,6 @@ class FuncModule(object): if not tmp_arg_dict: return {} - #or go ahead #see if user tried to register an not implemented method :) for method in tmp_arg_dict.keys(): if not hasattr(self,method): diff --git a/test/unittest/test_client.py b/test/unittest/test_client.py index bae9eab..9628973 100644 --- a/test/unittest/test_client.py +++ b/test/unittest/test_client.py @@ -14,7 +14,8 @@ import socket class BaseTest: # assume we are talking to localhost # th = socket.gethostname() - th = socket.getfqdn() + maho ="hard.evlan.com" + th = socket.getfqdn(maho) nforks=1 async=False @@ -48,11 +49,8 @@ class BaseTest: def test_module_get_method_args(self): mod = getattr(self.overlord,self.module) - result = mod.list_methods() - - for meth in result.values()[0]: - arg_result=mod.get_method_args(meth) - self.assert_on_fault(arg_result) + arg_result=mod.get_method_args() + self.assert_on_fault(arg_result) def test_module_inventory(self): mod = getattr(self.overlord, self.module) |