aboutsummaryrefslogtreecommitdiff
path: root/tests/docx/office_xml_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/docx/office_xml_tests.py')
-rw-r--r--tests/docx/office_xml_tests.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/docx/office_xml_tests.py b/tests/docx/office_xml_tests.py
index 5b8b1e1..f87fa75 100644
--- a/tests/docx/office_xml_tests.py
+++ b/tests/docx/office_xml_tests.py
@@ -2,13 +2,11 @@ from __future__ import unicode_literals
import io
-from nose.tools import istest, assert_equal
-
from mammoth.docx import xmlparser as xml, office_xml
+from ..testing import assert_equal
-@istest
-def alternate_content_is_replaced_by_contents_of_fallback():
+def test_alternate_content_is_replaced_by_contents_of_fallback():
xml_string = (
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
'<numbering xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">' +
@@ -21,6 +19,6 @@ def alternate_content_is_replaced_by_contents_of_fallback():
'</mc:Fallback>' +
'</mc:AlternateContent>' +
'</numbering>')
-
+
result = office_xml.read(io.StringIO(xml_string))
assert_equal([xml.element("fallback")], result.children)