'Verifies the basic behavior of set_user_preference.'

def test_set_user_preference(self):

    test_key = u'\u24df\u24e1\u24d4\u24d5\u24d4\u24e1\u24d4\u24dd\u24d2\u24d4_\u24da\u24d4\u24e8'
    test_value = u'\u01ddn\u05df\u0250\u028c_\u01dd\u0254u\u01dd\u0279\u01dd\u025f\u01dd\u0279d'
    set_user_preference(self.user, test_key, test_value)
    self.assertEqual(get_user_preference(self.user, test_key), test_value)
    set_user_preference(self.user, test_key, 'new_value', username=self.user.username)
    self.assertEqual(get_user_preference(self.user, test_key), 'new_value')
