'The client should handle json responses properly when they contain
unicode character data.
Regression test for ECOM-1606.'

@httpretty.activate
def test_client_unicode(self):

    expected_content = '{"result":    "Pr\xc3\xa9paratoire"}'
    httpretty.register_uri(httpretty.GET, '{}/baskets/1/order/'.format(settings.ECOMMERCE_API_URL.strip('/')), status=200, body=expected_content, adding_headers={'Content-Type': JSON})
    actual_object = ecommerce_api_client(self.user).baskets(1).order.get()
    self.assertEqual(actual_object, {u'result': u'Pr\xe9paratoire'})
