Home | Trees | Indices | Help |
|
---|
|
1 #!/usr/bin/env python 2 import unittest 3 import tempfile 4 5 from starcluster.config import StarClusterConfig 6 from starcluster.tests.templates import config10 11 __cfg = None 12 13 @property3715 """ Returns (valid) default test config """ 16 if not self.__cfg: 17 tmp_file = tempfile.NamedTemporaryFile() 18 tmp_file.write(config.config_test_template % config.default_config) 19 tmp_file.flush() 20 self.__cfg = StarClusterConfig(tmp_file.name, cache=True).load() 21 return self.__cfg2224 tmp_file = tempfile.NamedTemporaryFile() 25 tmp_file.write(contents) 26 tmp_file.flush() 27 cfg = StarClusterConfig(tmp_file.name, cache=cache).load() 28 return cfg2931 """ Returns default test config modified by kwargs """ 32 kwords = {} 33 kwords.update(config.default_config) 34 kwords.update(kwargs) 35 cfg = self.get_config(config.config_test_template % kwords) 36 return cfg
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 27 11:48:23 2011 | http://epydoc.sourceforge.net |