def test_appropriately_named_file_takes_precedence(self):
    _common.touch(os.path.join(self.dpath, 'a.jpg'))
    _common.touch(os.path.join(self.dpath, 'art.jpg'))
    fn = self.source.get(self.dpath, ('art',), False)
    self.assertEqual(fn, os.path.join(self.dpath, 'art.jpg'))
def test_appropriately_named_file_takes_precedence(self):
    _common.touch(os.path.join(self.dpath, 'a.jpg'))
    _common.touch(os.path.join(self.dpath, 'art.jpg'))
    fn = self.source.get(self.dpath, ('art',), False)
    self.assertEqual(fn, os.path.join(self.dpath, 'art.jpg'))