aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/document_xml_tests.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-01-21 19:38:48 +0000
committerMichael Williamson <mike@zwobble.org>2015-01-21 19:38:48 +0000
commit72e5c9810f9ec8f88d62491f37a68abd9927e6fd (patch)
treec814868592a084917b8c1e820ba03e9943e59b71 /tests/docx/document_xml_tests.py
parente3884f135f15a506fd33338c4f127dd706936679 (diff)
Operate over a more generic notion of note
Diffstat (limited to 'tests/docx/document_xml_tests.py')
-rw-r--r--tests/docx/document_xml_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/docx/document_xml_tests.py b/tests/docx/document_xml_tests.py
index 8e2cb8d..a0d29b9 100644
--- a/tests/docx/document_xml_tests.py
+++ b/tests/docx/document_xml_tests.py
@@ -321,7 +321,7 @@ class ReadXmlElementTests(object):
document_xml = xml_element("w:document", {}, [body_xml])
document = _read_and_get_document_xml_element(document_xml, footnote_elements=footnotes)
- footnote = document.footnotes.find_footnote_by_id("4")
+ footnote = document.notes.find_note("footnote", "4")
assert_equal("4", footnote.id)
assert isinstance(footnote.body[0], documents.Paragraph)
@@ -329,7 +329,7 @@ class ReadXmlElementTests(object):
def footnote_reference_has_id_read(self):
footnote_xml = xml_element("w:footnoteReference", {"w:id": "4"})
footnote = _read_and_get_document_xml_element(footnote_xml)
- assert_equal("4", footnote.footnote_id)
+ assert_equal("4", footnote.note_id)
@istest
def ignored_elements_are_ignored_without_message(self):