Exemplo n.º 1
0
 def test_get_config_with_invalid_config_raises_error(self):
     bad_config_file = os.path.join(self.cwd, 'data', 'foo.configadsf')
     config = get_config(bad_config_file)
     config.get('Default', 'Foo')
Exemplo n.º 2
0
 def test_get_config_with_invalid_config_raises_error(self):
     bad_config_file = os.path.join(self.cwd, 'data', 'foo.configadsf')
     config = get_config(bad_config_file)
     config.get('Default', 'Foo')
Exemplo n.º 3
0
 def test_get_config_with_valid_config_returns_valid_data(self):
     config = get_config(self.config_file)
     ok_(config.get('Default', 'Foo') == 'Bar')
Exemplo n.º 4
0
 def test_get_config_with_valid_config_returns_valid_data(self):
     config = get_config(self.config_file)
     ok_(config.get('Default', 'Foo') == 'Bar')