aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/docx/numbering_xml_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/docx/numbering_xml_tests.py b/tests/docx/numbering_xml_tests.py
index 6f4e9ac..8fb59ff 100644
--- a/tests/docx/numbering_xml_tests.py
+++ b/tests/docx/numbering_xml_tests.py
@@ -41,3 +41,9 @@ def list_is_not_ordered_if_formatted_as_bullet():
def list_is_ordered_if_formatted_as_decimal():
numbering = read_numbering_xml_element(_sample_numbering_xml)
assert_equal(True, numbering.find_level("47", "1").is_ordered)
+
+
+@istest
+def find_level_returns_none_if_level_cannot_be_found():
+ numbering = read_numbering_xml_element(_sample_numbering_xml)
+ assert_equal(None, numbering.find_level("47", "2"))