Esempio n. 1
0
 def test_finds(self):
     cfg = configs.config_by_name(configs.CurrentPython.__name__)
     self.assertIsInstance(cfg, configs.CurrentPython)
Esempio n. 2
0
 def test_raises_if_not_found(self):
     with self.assertRaises(configs.UnsupportedConfig):
         configs.config_by_name('SpamEggs')