def test_raise_exception_if_flag_doesnt_exist_but_config_flag_is_set(self):

    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
    else:
      raise AssertionError("We expected to throw a KeyError, but didn't.")
dataset/ETHPy150Open trustrachel/Flask-FeatureFlags/tests/test_core_function.py/TestFeatureFlagCoreFunctionality.test_raise_exception_if_flag_doesnt_exist_but_config_flag_is_set