test/unittest_vregistry.py
changeset 8190 2a3c1b787688
parent 7791 31bb51ea5485
child 8801 86c1a5afbe4e
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    20 
    20 
    21 from os.path import join
    21 from os.path import join
    22 
    22 
    23 from cubicweb import CW_SOFTWARE_ROOT as BASE
    23 from cubicweb import CW_SOFTWARE_ROOT as BASE
    24 from cubicweb.appobject import AppObject
    24 from cubicweb.appobject import AppObject
    25 from cubicweb.cwvreg import CubicWebVRegistry, UnknownProperty
    25 from cubicweb.cwvreg import CWRegistryStore, UnknownProperty
    26 from cubicweb.devtools import TestServerConfiguration
    26 from cubicweb.devtools import TestServerConfiguration
    27 from cubicweb.devtools.testlib import CubicWebTC
    27 from cubicweb.devtools.testlib import CubicWebTC
    28 from cubicweb.view import EntityAdapter
    28 from cubicweb.view import EntityAdapter
    29 
    29 
    30 from cubes.card.entities import Card
    30 from cubes.card.entities import Card
    37 
    37 
    38 class VRegistryTC(TestCase):
    38 class VRegistryTC(TestCase):
    39 
    39 
    40     def setUp(self):
    40     def setUp(self):
    41         config = TestServerConfiguration('data')
    41         config = TestServerConfiguration('data')
    42         self.vreg = CubicWebVRegistry(config)
    42         self.vreg = CWRegistryStore(config)
    43         config.bootstrap_cubes()
    43         config.bootstrap_cubes()
    44         self.vreg.schema = config.load_schema()
    44         self.vreg.schema = config.load_schema()
    45 
    45 
    46     def test_load_interface_based_vojects(self):
    46     def test_load_interface_based_vojects(self):
    47         self.vreg.init_registration([WEBVIEWSDIR])
    47         self.vreg.init_registration([WEBVIEWSDIR])