#NEWLINE# def test_no_link_text( self ) : #NEWLINE# #INDENT# document_xml = '\n            <p>\n              <hyperlink id="foobar" />\n            </p>\n        ' #NEWLINE# document = WordprocessingDocumentFactory ( ) #NEWLINE# document_rels = document . relationship_format . format ( id = 'foobar' , type = 'foo/hyperlink' , target = 'http://google.com' , target_mode = 'External' ) #NEWLINE# document . add ( MainDocumentPart , document_xml , document_rels ) #NEWLINE# expected_html = '' #NEWLINE# self . assert_document_generates_html ( document_xml , expected_html )