Exemple #1
0
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")
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")
Exemple #3
0
 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 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()