Changeset 7586 for main/waeup.custom/trunk/src/waeup/custom/utils
- Timestamp:
- 4 Feb 2012, 06:53:13 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup/custom/utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.