diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-08-29 15:11:56 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-08-29 15:11:56 +0100 |
| commit | 3d94e243d6c56dfc083f0be67a246f988e27ddec (patch) | |
| tree | c098ca3aed54a7c1ce278cabe5ee8de4db0346f5 /tests/docx | |
| parent | 150f1cb9634ab13ef64b9d74fcdde428053835bc (diff) | |
Handle missing level in the same way as missing num
Diffstat (limited to 'tests/docx')
| -rw-r--r-- | tests/docx/numbering_xml_tests.py | 6 |
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")) |
