diff options
author | Adrian Likins <alikins@redhat.com> | 2008-12-11 16:10:12 -0500 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-12-11 16:10:12 -0500 |
commit | e743dab1a42cb8be87abc8d135a5f417964efd0a (patch) | |
tree | af234f1d6629fa94565bc6868b6c2a9197be451e /func | |
parent | 04da8fe83ca7ae766922a42447bee7902f5b2b59 (diff) | |
download | func-e743dab1a42cb8be87abc8d135a5f417964efd0a.tar.gz func-e743dab1a42cb8be87abc8d135a5f417964efd0a.tar.xz func-e743dab1a42cb8be87abc8d135a5f417964efd0a.zip |
add new test methods used by unittests. return an empty exception
Diffstat (limited to 'func')
-rw-r--r-- | func/minion/modules/test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/func/minion/modules/test.py b/func/minion/modules/test.py index 7c298e2..a5ba98b 100644 --- a/func/minion/modules/test.py +++ b/func/minion/modules/test.py @@ -32,12 +32,21 @@ class Test(func_module.FuncModule): time.sleep(t) return time.time() + def explode(self): """ Testing remote exception handling is useful """ raise exceptions.Exception("khhhhhhaaaaaan!!!!!!") + + def explode_no_string(self): + """ + Testing remote exception handling is useful + """ + raise exceptions.Exception() + + def echo(self, data): """ Returns whatever was passed into it |