예제 #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)