def test_can_get_flag_value(): state = FeatureFlagsState(True) flag = { 'key': 'key' } state.add_flag(flag, 'value', 1, None, False) assert state.get_flag_value('key') == 'value'
def test_can_get_flag_value(): state = FeatureFlagsState(True) flag = {'key': 'key'} state.add_flag(flag, 'value', 1, None, False) assert state.get_flag_value('key') == 'value'
def test_returns_none_for_unknown_flag(): state = FeatureFlagsState(True) assert state.get_flag_value('key') is None