00fd7875e9c86e183b7094b8e9cf6ac9ef1a8782
[librarian.git] / tests / test_text.py
1 #!/usr/bin/env python
2 # encoding: utf-8
3
4 import unittest
5
6 from utils import get_file_path
7 from librarian import dcparser
8 from librarian import text, NoDublinCore
9
10
11 class TestXML(unittest.TestCase):
12     def test_no_dublincore(self):
13         try:
14             text.transform(get_file_path('text', 'asnyk_miedzy_nami.xml'),
15                            get_file_path('text', 'asnyk_miedzy_nami.txt'))
16             self.fail()
17         except NoDublinCore, e:
18             pass
19
20
21 if __name__ == '__main__':
22     unittest.main()