def test_stored_hashes(self):
        test_album = self.mk_test_album()
        ipfs = IPFSPlugin()
        added_albums = ipfs.ipfs_added_albums(self.lib, self.lib.path)
        added_album = added_albums.get_album(1)
        self.assertEqual(added_album.ipfs, test_album.ipfs)
        found = False
        want_item = test_album.items()[2]
        for check_item in added_album.items():
            try:
                if check_item.ipfs:
                    want_path = '/ipfs/{0}/{1}'.format(test_album.ipfs,
                                                       os.path.basename(
                                                           want_item.path))
                    self.assertEqual(check_item.path, want_path)
                    self.assertEqual(check_item.ipfs, want_item.ipfs)
                    self.assertEqual(check_item.title, want_item.title)
                    found = True
            except __HOLE__:
                pass
        self.assertTrue(found)
dataset/ETHPy150Open beetbox/beets/test/test_ipfs.py/IPFSPluginTest.test_stored_hashes