diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-05-26 09:28:41 (GMT) |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-05-26 09:28:41 (GMT) |
commit | e8392ac394cf8014df7dd876ecc7a9eabd1ba0d3 (patch) | |
tree | a241429cca4858a9045f39ef9dfb914ece5e24e2 /tests/test_conversion.py | |
parent | 005ceef563bce78ec18743144ed8b54dcb5a93c2 (diff) | |
parent | a7cc7f9ce160a7d657f6c237c4e5bacc7f4abbd3 (diff) |
Merge branch 'upstream'
Diffstat (limited to 'tests/test_conversion.py')
-rw-r--r-- | tests/test_conversion.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/test_conversion.py b/tests/test_conversion.py deleted file mode 100644 index aa6f1a9..0000000 --- a/tests/test_conversion.py +++ /dev/null @@ -1,30 +0,0 @@ -import unittest - -from olpc.datastore.converter import converter -from StringIO import StringIO - -class Test(unittest.TestCase): - - def test_unicode(self): - # read each of the test files in doing conversion, - # there should be no unicode errors - fn_expectations = { - 'test.pdf' : 'Don\'t', - 'test.doc' : 'amazed.', - 'test.odt' : 'amazed.', - 'plugger.pdf' : 'Plugger', - 'funkyabi.odt' : 'vaca' - } - for fn, expect in fn_expectations.iteritems(): - assert expect in converter(fn).read() - - - -def test_suite(): - suite = unittest.TestSuite() - suite.addTest(unittest.makeSuite(Test)) - return suite - -if __name__ == "__main__": - unittest.main() - |