'The newline characters \u2028 and \u2029 need to be escaped
in JSONP.'

def test_invalid_jsonp_characters(self):

    serializer = Serializer()
    jsonp = serializer.to_jsonp({'foo': u'Hello    \u2028\u2029world!'}, {'callback': 'callback'})
    self.assertEqual(jsonp, u'callback({"foo":    "Hello    \\u2028\\u2029world!"})')
