web/test/unittest_pdf.py
branchstable
changeset 5053 2021b3237015
parent 5031 60c4dea96afa
child 5421 8167de96c523
--- a/web/test/unittest_pdf.py	Fri Mar 26 19:20:49 2010 +0100
+++ b/web/test/unittest_pdf.py	Fri Mar 26 19:22:04 2010 +0100
@@ -1,12 +1,11 @@
-from unittest import TestCase
 import os.path as osp
+from tempfile import NamedTemporaryFile
+from subprocess import Popen as sub
 from xml.etree.cElementTree import ElementTree, fromstring, tostring, dump
 
-from tempfile import NamedTemporaryFile
-from subprocess import Popen as sub
+from logilab.common.testlib import TestCase, unittest_main
 
 from cubicweb.utils import can_do_pdf_conversion
-
 from cubicweb.ext.xhtml2fo import ReportTransformer
 
 DATADIR = osp.join(osp.dirname(__file__), 'data')
@@ -38,6 +37,5 @@
         self.assertTextEquals(output[150:1500], reference[150:1500])
 
 if __name__ == '__main__':
-    from logilab.common.testlib import unittest_main
     unittest_main()