def test_precedence_amongst_correct_files(self):
    _common.touch(os.path.join(self.dpath, 'back.jpg'))
    _common.touch(os.path.join(self.dpath, 'front.jpg'))
    _common.touch(os.path.join(self.dpath, 'front-cover.jpg'))
    fn = self.source.get(self.dpath, ('cover', 'front', 'back'), False)
    self.assertEqual(fn, os.path.join(self.dpath, 'front-cover.jpg'))
def test_precedence_amongst_correct_files(self):
    _common.touch(os.path.join(self.dpath, 'back.jpg'))
    _common.touch(os.path.join(self.dpath, 'front.jpg'))
    _common.touch(os.path.join(self.dpath, 'front-cover.jpg'))
    fn = self.source.get(self.dpath, ('cover', 'front', 'back'), False)
    self.assertEqual(fn, os.path.join(self.dpath, 'front-cover.jpg'))