From f772284b08698a47430549f18abc6e004ac06fb6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 30 May 2017 11:10:05 +0100 Subject: Read target frame on hyperlinks --- tests/docx/body_xml_tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/docx') diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py index e768bd5..2c418d2 100644 --- a/tests/docx/body_xml_tests.py +++ b/tests/docx/body_xml_tests.py @@ -672,6 +672,17 @@ class HyperlinkTests(object): documents.run([]), _read_and_get_document_xml_element(element) ) + + @istest + def target_frame_is_read(self): + element = xml_element("w:hyperlink", { + "w:anchor": "start", + "w:tgtFrame": "_blank", + }) + assert_that( + _read_and_get_document_xml_element(element), + is_hyperlink(target_frame="_blank"), + ) @istest -- cgit v1.2.3