'Verifies the basic behavior of update_user_preferences when passed
username string.'

def test_update_user_preferences_with_username(self):

    update_data = {self.test_preference_key: 'new_value'}
    update_user_preferences(self.user, update_data, user=self.user.username)
    self.assertEqual(get_user_preference(self.user, self.test_preference_key), 'new_value')
