class Test(unittest.TestCase): def setUp(self): self._application = Application("BasicConfigTest") self._application.config._on_config_value\ ("configured-component", "value", "Yes") self._conf_comp = ConfiguredComponent().register(self._application) self._application.start() def tearDown(self): self._application.stop() def testName(self): wait_for(self._conf_comp, "value", "Yes") self.assertEqual(self._conf_comp.value, "Yes")
def setUp(self): self._application = Application("BasicConfigTest") self._application.config._on_config_value\ ("configured-component", "value", "Yes") self._conf_comp = ConfiguredComponent().register(self._application) self._application.start()