aboutsummaryrefslogtreecommitdiff
path: root/tests/docx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2018-01-19 19:36:56 +0000
committerMichael Williamson <mike@zwobble.org>2018-01-19 19:36:56 +0000
commit882f1aff778b56bbc15222baa0555616f8e102ac (patch)
tree931fa395a4ec7a3307cf4a8d96491d5918888ed2 /tests/docx
parentceb05a609ee9323ab0ecea9aee473939f1149461 (diff)
Replace __getitem__ with find_target_by_relationship_id on Relationships
Diffstat (limited to 'tests/docx')
-rw-r--r--tests/docx/relationships_xml_tests.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/docx/relationships_xml_tests.py b/tests/docx/relationships_xml_tests.py
index f2280d9..c3d0af0 100644
--- a/tests/docx/relationships_xml_tests.py
+++ b/tests/docx/relationships_xml_tests.py
@@ -1,8 +1,7 @@
from nose.tools import istest, assert_equal
from mammoth.docx.xmlparser import element as xml_element
-from mammoth.docx.relationships_xml import \
- read_relationships_xml_element, Relationship
+from mammoth.docx.relationships_xml import read_relationships_xml_element
@istest
@@ -16,6 +15,6 @@ def target_is_read_from_relationship_element():
])
relationships = read_relationships_xml_element(element)
assert_equal(
- Relationship(target="http://example.com"),
- relationships["rId8"],
+ "http://example.com",
+ relationships.find_target_by_relationship_id("rId8"),
)