diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-06 09:17:08 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-06 09:17:08 -0400 |
commit | d3aa773f9f42045a0922d6c194e01d029ee53a40 (patch) | |
tree | b499c7973ff4e6c14a50d8708e07a23aeb863cc4 /testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testexceptions.py | |
parent | 460a1c2a0f1caa7eb2043ad10ba64b8b55e43844 (diff) | |
download | bcfg2-d3aa773f9f42045a0922d6c194e01d029ee53a40.tar.gz bcfg2-d3aa773f9f42045a0922d6c194e01d029ee53a40.tar.bz2 bcfg2-d3aa773f9f42045a0922d6c194e01d029ee53a40.zip |
split up mammoth Plugin.py
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testexceptions.py')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testexceptions.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testexceptions.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testexceptions.py new file mode 100644 index 000000000..d2b72251e --- /dev/null +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testexceptions.py @@ -0,0 +1,47 @@ +import os +import sys +from mock import Mock, MagicMock, patch +from Bcfg2.Server.Plugin.exceptions import * + +# add all parent testsuite directories to sys.path to allow (most) +# relative imports in python 2.4 +path = os.path.dirname(__file__) +while path != '/': + if os.path.basename(path).lower().startswith("test"): + sys.path.append(path) + if os.path.basename(path) == "testsuite": + break + path = os.path.dirname(path) +from common import call, builtins, skip, skipIf, skipUnless, Bcfg2TestCase, \ + patchIf, datastore + + +class TestPluginInitError(Bcfg2TestCase): + """ placeholder for future tests """ + pass + + +class TestPluginExecutionError(Bcfg2TestCase): + """ placeholder for future tests """ + pass + + +class TestMetadataConsistencyError(Bcfg2TestCase): + """ placeholder for future tests """ + pass + + +class TestMetadataRuntimeError(Bcfg2TestCase): + """ placeholder for future tests """ + pass + + +class TestValidationError(Bcfg2TestCase): + """ placeholder for future tests """ + pass + + +class TestSpecificityError(Bcfg2TestCase): + """ placeholder for future tests """ + pass + |