def test_raise_exception_if_config_section_doesnt_exist_and_config_flag_is_set(self):

    del self.app.config[FLAG_CONFIG]
    self.app.config[RAISE_ERROR] = True
    self.app.debug = True

    with self.app.test_request_context('/'):
      url = url_for('view_based_feature_flag')

    try:
      self.test_client.get(url)
    except __HOLE__:  # assertRaises no worky for some reason :/
      pass
dataset/ETHPy150Open trustrachel/Flask-FeatureFlags/tests/test_core_function.py/TestFeatureFlagCoreFunctionality.test_raise_exception_if_config_section_doesnt_exist_and_config_flag_is_set