'Verifies the basic behavior of update_user_preferences.'

def test_update_user_preferences(self):

    set_user_preference(self.user, self.test_preference_key, 'new_value')
    self.assertEqual(get_user_preference(self.user, self.test_preference_key), 'new_value')
    set_user_preference(self.user, self.test_preference_key, 'new_value', username=self.user.username)
    self.assertEqual(get_user_preference(self.user, self.test_preference_key), 'new_value')
