# HG changeset patch # User Sylvain Thénault # Date 1269627724 -3600 # Node ID 2021b3237015e684dd4cf2de0918b997ed917dea # Parent 500c594bbf38aac8cee5d51b850339da9eb538f1 use lgc.testlib.TestCase diff -r 500c594bbf38 -r 2021b3237015 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()