* morituri/common/common.py:
* morituri/common/program.py: * morituri/image/table.py: * morituri/rip/cd.py: * morituri/test/test_common_common.py: * morituri/test/test_image_toc.py: Handle cases where disc_template and track_template are not in the same directory.
This commit is contained in:
@@ -25,3 +25,14 @@ class FramesTestCase(tcommon.TestCase):
|
||||
class FormatTimeTestCase(tcommon.TestCase):
|
||||
def testFormatTime(self):
|
||||
self.assertEquals(common.formatTime(7202), '02:00:02.000')
|
||||
|
||||
|
||||
class GetRelativePathTestCase(tcommon.TestCase):
|
||||
|
||||
def testRelativeOutputDirectory(self):
|
||||
directory = '.Placebo - Black Market Music (2000)'
|
||||
cue = './' + directory + '/Placebo - Black Market Music (2000)'
|
||||
track = './' + directory + '/01. Placebo - Taste in Men.flac'
|
||||
|
||||
self.assertEquals(common.getRelativePath(track, cue),
|
||||
'01. Placebo - Taste in Men.flac')
|
||||
|
||||
Reference in New Issue
Block a user