def METHOD_NAME(self):
    """Verifies the behavior of get_value."""
    user = UserFactory.create()
    key = 'testkey'
    value = 'testvalue'
    # does a round trip
    set_user_preference(user, key, value)
    pref = UserPreference.get_value(user, key)
    assert pref == value
    # get preference for key that doesn't exist for user
    pref = UserPreference.get_value(user, 'testkey_none')
    assert pref is None
    # get default value for key that doesn't exist for user
    pref = UserPreference.get_value(user, 'testkey_none', 'default_value')
    assert 'default_value' == pref