products/CPSRSS

changeset 171:039e5d0c72ae

switch to layer based tests
author div
date Mon, 23 Jan 2006 11:16:20 +0000
parents 5109de6721df
children 3cf5e80453e2
files tests/CPSRSSTestCase.py
diffstat 1 files changed, 25 insertions(+), 10 deletions(-) [+]
line diff
     1.1 --- a/tests/CPSRSSTestCase.py
     1.2 +++ b/tests/CPSRSSTestCase.py
     1.3 @@ -1,16 +1,31 @@
     1.4 -from Testing import ZopeTestCase
     1.5 +# (C) Copyright 2006 Nuxeo SAS <http://nuxeo.com>
     1.6 +# Author: Dragos Ivan <fg@nuxeo.com>
     1.7 +#
     1.8 +# This program is free software; you can redistribute it and/or modify
     1.9 +# it under the terms of the GNU General Public License version 2 as published
    1.10 +# by the Free Software Foundation.
    1.11 +#
    1.12 +# This program is distributed in the hope that it will be useful,
    1.13 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.15 +# GNU General Public License for more details.
    1.16 +#
    1.17 +# You should have received a copy of the GNU General Public License
    1.18 +# along with this program; if not, write to the Free Software
    1.19 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    1.20 +# 02111-1307, USA.
    1.21 +#
    1.22 +# $Id$
    1.23  
    1.24 -ZopeTestCase.installProduct('CPSRSS')
    1.25 -# XXX: needed ?
    1.26 -#ZopeTestCase.installProduct('PortalTransforms')
    1.27 -#ZopeTestCase.installProduct('Epoz')
    1.28 +from Products.CPSDefault.tests.CPSTestCase import CPSTestCase
    1.29 +from Products.CPSDefault.tests.CPSTestCase import ExtensionProfileLayerClass
    1.30  
    1.31 -# XXX: change this later so that we try the tool inside a 
    1.32 -# CMF site, not a CPS.
    1.33 -from Products.CPSDefault.tests import CPSTestCase
    1.34  
    1.35 -CPSTestCase.setupPortal()
    1.36 +class LayerClass(ExtensionProfileLayerClass):
    1.37 +    extension_ids = ('CPSRSS:default',)
    1.38  
    1.39 -CPSRSSTestCase = CPSTestCase.CPSTestCase
    1.40 +CPSRSSLayer = LayerClass(__name__, 'CPSRSSLayer')
    1.41  
    1.42  
    1.43 +class CPSRSSTestCase(CPSTestCase):
    1.44 +    layer = CPSRSSLayer