Exemple #1
0
    def runTest(self):

        songFile = os.path.join(modulePath, "sample.mp3")
        metadataHandler = metaedit.metadataHandler(songFile)
        songInfo = metadataHandler.read()

        song = self.repository.addSong(songFile, libmgr.createSong(songFile), keepOriginal=True)
        assert os.path.exists(songFile)
        assert song in self.repository
        self.repository.removeSong(song)
        assert song not in self.repository
Exemple #2
0
 def setUp(self):
     self.fileMetadataHandler = metaedit.metadataHandler(sampleM4APath)