aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/body_xml_tests.py11
1 files changed, 11 insertions, 0 deletions
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