aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2022-03-09 21:00:46 +0000
committerMichael Williamson <mike@zwobble.org>2022-03-09 21:00:46 +0000
commit8e95f5abce943c9d2bf8dc859d628085beb15901 (patch)
tree4a636cb5490b9fbf55b2ac816f8010d716dc76c9 /tests
parente5e1601624e6dde4c888da2f3d27b1709b37127f (diff)
Ignore w:u elements when w:val is missing
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/body_xml_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/docx/body_xml_tests.py b/tests/docx/body_xml_tests.py
index e0328fb..d7f5509 100644
--- a/tests/docx/body_xml_tests.py
+++ b/tests/docx/body_xml_tests.py
@@ -275,9 +275,9 @@ class RunTests(object):
assert_equal(False, run.is_underline)
@istest
- def run_is_underlined_if_underline_element_is_present_without_val_attribute(self):
+ def run_is_not_underlined_if_underline_element_is_present_without_val_attribute(self):
run = self._read_run_with_properties([xml_element("w:u")])
- assert_equal(True, run.is_underline)
+ assert_equal(False, run.is_underline)
@istest
def run_is_not_underlined_if_underline_element_is_present_and_val_is_false(self):