'Test that a client (logged in) can get her own preferences information. Also verifies that a "is_staff"
user can get the preferences information for other users.'

@ddt.data(('client', 'user'), ('staff_client', 'staff_user'))
@ddt.unpack
def test_get_preference(self, api_client, user):

    client = self.login_client(api_client, user)
    response = self.send_get(client)
    self.assertEqual(self.test_pref_value, response.data)
    set_user_preference(self.user, 'dict_pref', {'int_key': 10})
    self._set_url('dict_pref')
    response = self.send_get(client)
    self.assertEqual("{'int_key':    10}", response.data)
