server/test/unittest_repository.py
changeset 8190 2a3c1b787688
parent 7795 b8027b317d1c
child 8353 c1cc2f1cd177
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
     1 # -*- coding: iso-8859-1 -*-
     1 # -*- coding: iso-8859-1 -*-
     2 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     3 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     4 #
     4 #
     5 # This file is part of CubicWeb.
     5 # This file is part of CubicWeb.
     6 #
     6 #
     7 # CubicWeb is free software: you can redistribute it and/or modify it under the
     7 # CubicWeb is free software: you can redistribute it and/or modify it under the
    32 
    32 
    33 from yams.constraints import UniqueConstraint
    33 from yams.constraints import UniqueConstraint
    34 
    34 
    35 from cubicweb import (BadConnectionId, RepositoryError, ValidationError,
    35 from cubicweb import (BadConnectionId, RepositoryError, ValidationError,
    36                       UnknownEid, AuthenticationError, Unauthorized, QueryError)
    36                       UnknownEid, AuthenticationError, Unauthorized, QueryError)
    37 from cubicweb.selectors import is_instance
    37 from cubicweb.predicates import is_instance
    38 from cubicweb.schema import CubicWebSchema, RQLConstraint
    38 from cubicweb.schema import CubicWebSchema, RQLConstraint
    39 from cubicweb.dbapi import connect, multiple_connections_unfix
    39 from cubicweb.dbapi import connect, multiple_connections_unfix
    40 from cubicweb.devtools.testlib import CubicWebTC
    40 from cubicweb.devtools.testlib import CubicWebTC
    41 from cubicweb.devtools.repotest import tuplify
    41 from cubicweb.devtools.repotest import tuplify
    42 from cubicweb.server import repository, hook
    42 from cubicweb.server import repository, hook