Пример #1
0
 def test_verifyRecordingDirs_InvalidDirThrowsSettingsException(self):
     try:
         MythSettings.verifyRecordingDirs(
             os.path.join('someBogusDir', 'anotherBogusDir'))
         self.fail('expected failure')
     except SettingsException, se:
         log.debug('PASS: %s' % se)
Пример #2
0
 def test_verifyRecordingDirs_OneInvalidOutOfManyOKThrowsSettingsException(self):
     try:
         MythSettings.verifyRecordingDirs(
             tempfile.gettempdir() + os.pathsep + "someBogusDir" + os.pathsep + os.getcwd()
         )
         self.fail("expected failure")
     except SettingsException, se:
         log.debug("PASS: %s" % se)
Пример #3
0
 def test_verifyRecordingDirs_OneInvalidOutOfManyOKThrowsSettingsException(
         self):
     try:
         MythSettings.verifyRecordingDirs(tempfile.gettempdir() +
                                          os.pathsep + 'someBogusDir' +
                                          os.pathsep + os.getcwd())
         self.fail('expected failure')
     except SettingsException, se:
         log.debug('PASS: %s' % se)
Пример #4
0
 def test_verifyRecordingDirs_OKManyDirectories(self):
     MythSettings.verifyRecordingDirs(
         self.sandbox + os.pathsep + os.getcwd() + os.pathsep + self.sandbox + os.pathsep + os.getcwd()
     )
Пример #5
0
 def test_verifyRecordingDirs_OKSingleDirectory(self):
     MythSettings.verifyRecordingDirs(self.sandbox)
Пример #6
0
 def test_verifyRecordingDirs_InvalidDirThrowsSettingsException(self):
     try:
         MythSettings.verifyRecordingDirs(os.path.join("someBogusDir", "anotherBogusDir"))
         self.fail("expected failure")
     except SettingsException, se:
         log.debug("PASS: %s" % se)
Пример #7
0
 def test_verifyRecordingDirs_EmptyStringThrowsSettingsException(self):
     try:
         MythSettings.verifyRecordingDirs("   ")
         self.fail("expected failure")
     except SettingsException, se:
         log.debug("PASS: %s" % se)
Пример #8
0
 def test_verifyRecordingDirs_OKManyDirectories(self):
     MythSettings.verifyRecordingDirs(self.sandbox + os.pathsep +
                                      os.getcwd() + os.pathsep +
                                      self.sandbox + os.pathsep +
                                      os.getcwd())
Пример #9
0
 def test_verifyRecordingDirs_OKSingleDirectory(self):
     MythSettings.verifyRecordingDirs(self.sandbox)
Пример #10
0
 def test_verifyRecordingDirs_EmptyStringThrowsSettingsException(self):
     try:
         MythSettings.verifyRecordingDirs('   ')
         self.fail('expected failure')
     except SettingsException, se:
         log.debug('PASS: %s' % se)