aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/footnotes_xml_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-01-21 17:44:59 +0000
committerMichael Williamson <mike@zwobble.org>2015-01-21 17:45:12 +0000
commitac8a3c933a70c2d9aa179216f9ccfd2373c39c1b (patch)
treec3cb3313b7e998484b90f1d7770dddb57d399a63 /tests/docx/footnotes_xml_tests.py
parent7b4c39650f2ebb0458f6f06375ab682fbc32f90e (diff)
Rename modules from footnotes to notes
Diffstat (limited to 'tests/docx/footnotes_xml_tests.py')
-rw-r--r--tests/docx/footnotes_xml_tests.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/docx/footnotes_xml_tests.py b/tests/docx/footnotes_xml_tests.py
deleted file mode 100644
index 645f3d0..0000000
--- a/tests/docx/footnotes_xml_tests.py
+++ /dev/null
@@ -1,34 +0,0 @@
-from nose.tools import istest, assert_equal
-
-from mammoth.docx.xmlparser import element as xml_element
-from mammoth.docx.footnotes_xml import read_footnotes_xml_element
-
-
-@istest
-def id_and_body_of_footnote_are_read():
- footnote_body = [xml_element("w:p")]
- footnotes = read_footnotes_xml_element(xml_element("w:footnotes", {}, [
- xml_element("w:footnote", {"w:id": "1"}, footnote_body),
- ]))
- assert_equal(1, len(footnotes))
- assert footnote_body is footnotes[0].body
- assert_equal("1", footnotes[0].id)
-
-
-@istest
-def continuation_separator_is_ignored():
- _assert_footnote_type_is_ignored("continuationSeparator")
-
-
-@istest
-def separator_is_ignored():
- _assert_footnote_type_is_ignored("separator")
-
-
-def _assert_footnote_type_is_ignored(footnote_type):
- footnote_body = [xml_element("w:p")]
- footnotes = read_footnotes_xml_element(xml_element("w:footnotes", {}, [
- xml_element("w:footnote", {"w:id": "1", "w:type": footnote_type}, footnote_body),
- ]))
- assert_equal(0, len(footnotes))
-