def test_get_current_config(self): with self.assertRaises(RuntimeError): DefaultConfig.get_current_config() class CacheConfig(DefaultConfig): ... cache_config = CacheConfig() self.assertEqual(cache_config, DefaultConfig.get_current_config())
def add(a: int, b: int = 2) -> result: self.assertEqual(config, DefaultConfig.get_current_config()) call_mock() return result