'Send invalid utf-8 to JSONDeserializer.'

def test_json_invalid_utf8(self):

    data = '{"server":    {"min_count":    1,    "flavorRef":    "1",\n                                                                "name":    "\xf0(\x8c(",\n                                                                "imageRef":    "10bab10c-1304-47d",\n                                                                "max_count":    1}}    '
    deserializer = wsgi.JSONDeserializer()
    self.assertRaises(exception.MalformedRequestBody, deserializer.deserialize, data)
