def test_ocr_ids(self):
        # pach in fixture ocr content
        with patch.object(self.vol, 'ocr') as mockocr:
            mockocr.exists = True
            ocr_xml = load_xmlobject_from_file(os.path.join(FIXTURE_DIR,
                'abbyyocr_fr8v2.xml'))
            mockocr.content = ocr_xml

            self.assertFalse(self.vol.ocr_has_ids)
            self.vol.add_ocr_ids()
            self.assertTrue(self.vol.ocr_has_ids)