def find_media_file(self, item):
        for m in self.media_files:
            if m.title.replace('Tag', 'Applied') == item.title:
                return m
        raise AssertionError(u"No MediaFile found for Item " +
                             util.displayable_path(item.path))
Find the pre-import MediaFile for an Item
dataset/ETHPy150Open beetbox/beets/test/test_importadded.py/ImportAddedTest.find_media_file