Revision e0007cf1 test/py/ganeti.constants_unittest.py
b/test/py/ganeti.constants_unittest.py | ||
---|---|---|
101 | 101 |
self.assertTrue(constants.DEFAULT_ENABLED_HYPERVISOR in |
102 | 102 |
constants.HYPER_TYPES) |
103 | 103 |
|
104 |
def testExtraLogfiles(self): |
|
105 |
for daemon in constants.DAEMONS_EXTRA_LOGBASE: |
|
106 |
self.assertTrue(daemon in constants.DAEMONS) |
|
107 |
for log_reason in constants.DAEMONS_EXTRA_LOGBASE[daemon]: |
|
108 |
self.assertTrue(log_reason in constants.VALID_EXTRA_LOGREASONS) |
|
109 |
|
|
110 | 104 |
|
111 | 105 |
class TestExportedNames(unittest.TestCase): |
112 | 106 |
_VALID_NAME_RE = re.compile(r"^[A-Z][A-Z0-9_]+$") |
Also available in: Unified diff