

def test_blip_embed_refers_to_undefined_image_relationship(self):
    document_xml = '\n            <p>\n            <r>\n              <t>Foo</t>\n              <drawing>\n                <anchor>\n                  <graphic>\n                    <graphicData>\n                      <pic>\n                        <blipFill>\n                          <blip embed="foobar" />\n                        </blipFill>\n                      </pic>\n                    </graphicData>\n                  </graphic>\n                </anchor>\n              </drawing>\n              <t>Bar</t>\n            </r>\n            </p>\n        '
    document = WordprocessingDocumentFactory()
    document.add(MainDocumentPart, document_xml)
    expected_html = '<p>FooBar</p>'
    self.assert_document_generates_html(self, expected_html)

dataset/ETHPy150Open CenterForOpenScience/pydocx/tests/export/html/test_drawing_graphic_blip.py DrawingGraphicBlipTestCase.test_blip_embed_refers_to_undefined_image_relationship/VarMisuse@37/207 `document`->`self`