aboutsummaryrefslogtreecommitdiff
path: root/tests/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-05-30 11:10:05 +0100
committerMichael Williamson <mike@zwobble.org>2017-05-30 11:10:05 +0100
commitf772284b08698a47430549f18abc6e004ac06fb6 (patch)
tree6b52921e7fc9d228dfef1227bc999344fd4b3253 /tests/docx
parent803e22c8b95faa99aad82a4c9a30aa132f123416 (diff)
Read target frame on hyperlinks
Diffstat (limited to 'tests/docx')
-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