use lgc.testlib.TestCase stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Mar 2010 19:22:04 +0100
branchstable
changeset 5053 2021b3237015
parent 5051 500c594bbf38
child 5054 cb066d29166a
use lgc.testlib.TestCase
web/test/unittest_pdf.py
--- 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()