def test_load_duplicate(self):
     config_loader = ConfigLoader()
     config_loader.update(dict(instrumentation=['test']))
     config_loader.update(dict(instrumentation=['test']))
     assert_equal(config_loader.instrumentation, ['test'])
 def test_load_bad(self):
     config_loader = ConfigLoader()
     config_loader.update(self.filepath)
 def test_load(self):
     test_cfg_file = os.path.join(DATA_DIR, 'test-config.py')
     config = ConfigLoader()
     config.update(test_cfg_file)
     assert_equal(config.device, 'TEST')
Esempio n. 4
0
 def test_load_duplicate(self):
     config_loader = ConfigLoader()
     config_loader.update(dict(instrumentation=['test']))
     config_loader.update(dict(instrumentation=['test']))
     assert_equal(config_loader.instrumentation, ['test'])
Esempio n. 5
0
 def test_load_bad(self):
     config_loader = ConfigLoader()
     config_loader.update(self.filepath)
Esempio n. 6
0
 def test_load(self):
     test_cfg_file = os.path.join(DATA_DIR, 'test-config.py')
     config = ConfigLoader()
     config.update(test_cfg_file)
     assert_equal(config.device, 'TEST')