Rev | Line | |
---|
[953] | 1 |
|
---|
| 2 | # $Id: unittests.py 11266 2010-10-17 16:06:34Z pstorz $
|
---|
| 3 |
|
---|
| 4 | import logging
|
---|
| 5 | logging.basicConfig(level=logging.ERROR,
|
---|
| 6 | format='%(asctime)s %(levelname)s \t (%(module)s:%(lineno)d) %(message)s ',
|
---|
| 7 | #filename='vanHelsing.log',
|
---|
| 8 | filemode='w')
|
---|
| 9 |
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | import nosferatu.bacresources as bacresources
|
---|
| 13 | import unittest
|
---|
| 14 | import os
|
---|
| 15 |
|
---|
| 16 | class TestSequenceFunctions(unittest.TestCase):
|
---|
| 17 |
|
---|
| 18 | def setUp(self):
|
---|
| 19 | '''
|
---|
| 20 | setup our test configuration
|
---|
| 21 | '''
|
---|
| 22 | self.dc = bacresources.DataCenter('regression/integritycheck.dmdz')
|
---|
| 23 | #print os.getcwdu()
|
---|
| 24 | #configstring = open('regression/bacula-dir.conf').read()
|
---|
| 25 | #self.DirConf = bacresources.DirectorConfig(configstring)
|
---|
| 26 | self.DirConf = self.dc.directors.pop()
|
---|
| 27 | #print 'cwd: ' + os.getcwd()
|
---|
| 28 |
|
---|
| 29 | #def testcheckFileDaemons(self):
|
---|
| 30 | # print self.dc.checkFileDaemonsIntegrity()
|
---|
| 31 |
|
---|
| 32 | def testcheckConsoles(self):
|
---|
| 33 | print self.dc.checkConsolesIntegrity()
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | if __name__ == '__main__':
|
---|
| 37 | unittest.main()
|
---|
| 38 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.