server/test/unittest_postgres.py
changeset 8190 2a3c1b787688
parent 8139 f9ebb6d1abc3
child 8349 fdb796435d7b
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
       
     1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
       
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     3 #
       
     4 # This file is part of Logilab-common.
       
     5 #
       
     6 # Logilab-common is free software: you can redistribute it and/or modify it
       
     7 # under the terms of the GNU Lesser General Public License as published by the
       
     8 # Free Software Foundation, either version 2.1 of the License, or (at your
       
     9 # option) any later version.
       
    10 #
       
    11 # Logilab-common is distributed in the hope that it will be useful, but WITHOUT
       
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
       
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
       
    14 # details.
       
    15 #
       
    16 # You should have received a copy of the GNU Lesser General Public License along
       
    17 # with Logilab-common.  If not, see <http://www.gnu.org/licenses/>.
       
    18 
     1 from __future__ import with_statement
    19 from __future__ import with_statement
     2 
    20 
     3 import socket
    21 import socket
     4 from datetime import datetime
    22 from datetime import datetime
     5 
    23 
     6 from logilab.common.testlib import SkipTest
    24 from logilab.common.testlib import SkipTest
     7 
    25 
     8 from cubicweb.devtools import ApptestConfiguration
    26 from cubicweb.devtools import ApptestConfiguration
     9 from cubicweb.devtools.testlib import CubicWebTC
    27 from cubicweb.devtools.testlib import CubicWebTC
    10 from cubicweb.selectors import is_instance
    28 from cubicweb.predicates import is_instance
    11 from cubicweb.entities.adapters import IFTIndexableAdapter
    29 from cubicweb.entities.adapters import IFTIndexableAdapter
    12 
    30 
    13 AT_LOGILAB = socket.gethostname().endswith('.logilab.fr') # XXX
    31 AT_LOGILAB = socket.gethostname().endswith('.logilab.fr') # XXX
    14 
    32 
    15 from unittest_querier import FixedOffset
    33 from unittest_querier import FixedOffset