Changeset 7586
- Timestamp:
- 4 Feb 2012, 06:53:13 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom
- Files:
-
- 1 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/ftesting.zcml
r7503 r7586 1 1 <configure 2 2 xmlns="http://namespaces.zope.org/zope" 3 xmlns:sirp="http://namespaces.waeup.org/sirp" 3 4 i18n_domain="waeup.custom" 4 5 package="waeup.custom" … … 8 9 <includeOverrides package="waeup.custom" /> 9 10 <includeOverrides package="waeup.custom" file="mail.zcml"/> 11 12 <!-- Where should the datacenter reside by default? --> 13 <sirp:datacenter 14 path="../../../parts/test/datacenter" /> 10 15 11 16 <!-- Typical functional testing security setup --> -
main/waeup.custom/trunk/src/waeup/custom/utils/tests.py
r7569 r7586 1 ## $Id : tests.py$1 ## $Id$ 2 2 ## 3 3 ## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann … … 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 from waeup.sirp.datacenter import DataCenter19 18 from waeup.sirp.testing import FunctionalTestCase 20 19 from waeup.custom.testing import FunctionalLayer … … 25 24 layer = FunctionalLayer 26 25 27 def test_ storage_path(self):28 mydatacenter = DataCenter()29 storagepath = mydatacenter.storage30 self.assertTrue('/src/waeup/custom/files' in storagepath)26 def test_foo(self): 27 '''Test method foo. 28 ''' 29 return -
main/waeup.custom/trunk/src/waeup/custom/utils/utils.py
r7569 r7586 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 """ General helper utilities for SIRP.18 """Customize general helper utilities for SIRP. 19 19 """ 20 20 import os … … 25 25 """A collection of methods subject to customization. 26 26 """ 27 28 def storage(self):29 """Return the initial storage path of the data center.30 """31 return os.path.dirname(__file__).replace('utils','files')32
Note: See TracChangeset for help on using the changeset viewer.