summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testexceptions.py
blob: d2b72251e53328296f8cf8f9b17fee5900546733 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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