Exemplo n.º 1
0
    def testRealWithBackslash(self):
        fd, path = tempfile.mkstemp(suffix=u'back\\slash.flac')
        refPath = os.path.join(os.path.dirname(path), 'fake.cue')

        self.assertEquals(common.getRealPath(refPath, path), path)

        # same path, but with wav extension, will point to flac file
        wavPath = path[:-4] + 'wav'
        self.assertEquals(common.getRealPath(refPath, wavPath), path)

        os.close(fd)
        os.unlink(path)
Exemplo n.º 2
0
    def testRealWithBackslash(self):
        fd, path = tempfile.mkstemp(suffix=u'back\\slash.flac')
        refPath = os.path.join(os.path.dirname(path), 'fake.cue')

        self.assertEquals(common.getRealPath(refPath, path),
            path)

        # same path, but with wav extension, will point to flac file
        wavPath = path[:-4] + 'wav'
        self.assertEquals(common.getRealPath(refPath, wavPath),
            path)

        os.close(fd)
        os.unlink(path)
Exemplo n.º 3
0
    def getRealPath(self, path):
        """
        Translate the .cue's FILE to an existing path.

        @type  path: unicode
        """
        return common.getRealPath(self._path, path)
Exemplo n.º 4
0
    def getRealPath(self, path):
        """
        Translate the .cue's FILE to an existing path.

        @type  path: unicode
        """
        return common.getRealPath(self._path, path)