def testAddPrefix(self): self.assertEqual( ConvertPath('this/is/a/path.txt', output_prefix='banana_'), 'this/is/a/banana_path.txt')
def testOutputDirectory(self): self.assertEqual( ConvertPath('this/is/a/path.txt', output_directory='another/location'), 'another/location/path.txt')
def testBaseDirectory(self): self.assertEqual( ConvertPath('if/this/is/a/path.txt', output_directory='then/that', base_directory='if/this'), os.path.join('then/that', 'is', 'a', 'path.txt'))
def testNoop(self): self.assertEqual(ConvertPath('this/is/a/path.txt'), 'this/is/a/path.txt')
def testChangeExtension(self): self.assertEqual( ConvertPath('this/is/a/path.txt', output_extension='clown'), 'this/is/a/path.clown')