aboutsummaryrefslogtreecommitdiff
path: root/tests/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-06-17 15:49:04 +0100
committerMichael Williamson <mike@zwobble.org>2015-06-17 15:49:04 +0100
commit3bfa77d64e69d20609c8321a067bfa2651a7eabc (patch)
tree4cab2b0ff450665c3b164a27292b18583c339059 /tests/docx
parent6478f5c20b86534c471793041f4e5b46f0cd6484 (diff)
Add support for strikethrough
Diffstat (limited to 'tests/docx')
-rw-r--r--tests/docx/document_xml_tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/docx/document_xml_tests.py b/tests/docx/document_xml_tests.py
index f0fa5ab..bc6fcfb 100644
--- a/tests/docx/document_xml_tests.py
+++ b/tests/docx/document_xml_tests.py
@@ -142,6 +142,16 @@ class ReadXmlElementTests(object):
def run_is_underlined_if_underline_element_is_present(self):
run = self._read_run_with_properties([xml_element("w:u")])
assert_equal(True, run.is_underline)
+
+ @istest
+ def run_is_not_struckthrough_if_strikethrough_element_is_not_present(self):
+ run = self._read_run_with_properties([])
+ assert_equal(False, run.is_strikethrough)
+
+ @istest
+ def run_is_struckthrough_if_strikethrough_element_is_present(self):
+ run = self._read_run_with_properties([xml_element("w:strike")])
+ assert_equal(True, run.is_strikethrough)
@istest
def run_has_baseline_vertical_alignment_if_vertical_alignment_element_is_not_present(self):