Exemple #1
0
    def test_get_multiple_config_var_error(self):
        config_signal.connect(
            set_simple_config_view_multiple_vars,
            dispatch_uid='set_simple_config_view_multiple_vars_for_testing')

        with self.assertRaisesMessage(
                ConfigError,
                'Too many values for config variable multiple_config_var found.'):
            config.setup_cache()
        config_signal.disconnect(
            set_simple_config_view_multiple_vars,
            dispatch_uid='set_simple_config_view_multiple_vars_for_testing')
Exemple #2
0
 def test_get_multiple_config_var_error(self):
     config_signal.connect(set_simple_config_view_multiple_vars, dispatch_uid='set_simple_config_view_multiple_vars_for_testing')
     self.assertRaisesMessage(expected_exception=ConfigError,
                              expected_message='Too many values for config variable multiple_config_var found.',
                              callable_obj=config.setup_cache)
     config_signal.disconnect(set_simple_config_view_multiple_vars, dispatch_uid='set_simple_config_view_multiple_vars_for_testing')