'Test that a client (logged in) can update a preference.'

@ddt.data((u'new    value',), (10,), ({u'int_key': 10},))
@ddt.unpack
def test_update_preference(self, preference_value):

    self.client.login(username=self.user.username, password=TEST_PASSWORD)
    self.send_put(self.client, preference_value)
    response = self.send_get(self.client)
    self.assertEqual(unicode(preference_value), response.data)
