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)
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)
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)
def test_verifyRecordingDirs_OKManyDirectories(self): MythSettings.verifyRecordingDirs( self.sandbox + os.pathsep + os.getcwd() + os.pathsep + self.sandbox + os.pathsep + os.getcwd() )
def test_verifyRecordingDirs_OKSingleDirectory(self): MythSettings.verifyRecordingDirs(self.sandbox)
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)
def test_verifyRecordingDirs_EmptyStringThrowsSettingsException(self): try: MythSettings.verifyRecordingDirs(" ") self.fail("expected failure") except SettingsException, se: log.debug("PASS: %s" % se)
def test_verifyRecordingDirs_OKManyDirectories(self): MythSettings.verifyRecordingDirs(self.sandbox + os.pathsep + os.getcwd() + os.pathsep + self.sandbox + os.pathsep + os.getcwd())
def test_verifyRecordingDirs_EmptyStringThrowsSettingsException(self): try: MythSettings.verifyRecordingDirs(' ') self.fail('expected failure') except SettingsException, se: log.debug('PASS: %s' % se)