예제 #1
0
    def test_006_config_manager(self):
        """ Test adding to the config context, adding single values that do
        overwrite existing.
        """
        cfg = ConfigManager()

        self.assertNotIn('value1', cfg.__dict__)
        cfg.value1 = 5000
        self.assertIn('value1', cfg.__dict__)
        self.assertEqual(cfg.value1, 5000)
        cfg.value1 = 'new-value'
        self.assertIn('value1', cfg.__dict__)
        self.assertEqual(cfg.value1, 'new-value')
예제 #2
0
    def test_006_config_manager(self):
        """ Test adding to the config context, adding single values that do
        overwrite existing.
        """
        cfg = ConfigManager()

        self.assertNotIn('value1', cfg.__dict__)
        cfg.value1 = 5000
        self.assertIn('value1', cfg.__dict__)
        self.assertEqual(cfg.value1, 5000)
        cfg.value1 = 'new-value'
        self.assertIn('value1', cfg.__dict__)
        self.assertEqual(cfg.value1, 'new-value')
예제 #3
0
    def test_005_config_manager(self):
        """ Test adding to the config context, adding single values that do not
        overwrite existing.
        """
        cfg = ConfigManager()

        self.assertNotIn('value1', cfg.__dict__)
        cfg.value1 = 5000
        self.assertIn('value1', cfg.__dict__)
예제 #4
0
    def test_005_config_manager(self):
        """ Test adding to the config context, adding single values that do not
        overwrite existing.
        """
        cfg = ConfigManager()

        self.assertNotIn('value1', cfg.__dict__)
        cfg.value1 = 5000
        self.assertIn('value1', cfg.__dict__)