示例#1
0
 def test_config_has_not_lower_case_variable(self):
     config = Config(self.root_path)
     config.load_from_pyfile('dummy_config.py')
     self.assertNotIn('lower_case', config)
示例#2
0
 def test_load_from_pyfile(self):
     config = Config(self.root_path)
     config.load_from_pyfile('dummy_config.py')
     self.assertIn('UPPER_CASE', config)
示例#3
0
 def test_constructor_set_root_path(self):
     config = Config(self.root_path)
     config.load_from_pyfile('dummy_config.py')
     self.assertIn('root_path', dir(config))
示例#4
0
文件: test_apps.py 项目: c-bata/kobin
 def test_config_has_not_lower_case_variable(self):
     config = Config(self.root_path)
     config.load_from_pyfile('dummy_config.py')
     self.assertNotIn('lower_case', config)
示例#5
0
文件: test_apps.py 项目: c-bata/kobin
 def test_load_from_pyfile(self):
     config = Config(self.root_path)
     config.load_from_pyfile('dummy_config.py')
     self.assertIn('UPPER_CASE', config)
示例#6
0
文件: test_apps.py 项目: c-bata/kobin
 def test_constructor_set_root_path(self):
     config = Config(self.root_path)
     config.load_from_pyfile('dummy_config.py')
     self.assertIn('root_path', dir(config))