-from utils import get_file_path
-from librarian import dcparser
-from librarian import text, NoDublinCore
+def teardown_transform():
+ remove_output_file('text', 'asnyk_miedzy_nami.txt')
+
+
+@with_setup(None, teardown_transform)
+def test_transform():
+ output_file_path = get_fixture('text', 'asnyk_miedzy_nami.txt')
+ expected_output_file_path = get_fixture('text', 'asnyk_miedzy_nami_expected.txt')
+
+ text.transform(
+ open(get_fixture('text', 'asnyk_miedzy_nami.xml')),
+ open(output_file_path, 'w'),
+ )
+
+ assert_equal(file(output_file_path).read(), file(expected_output_file_path).read())