code: def test_ensure_ascii_linebreak_encoding(self):
      # http://timelessrepo.com/json-isnt-a-javascript-subset
      s1 = "\u2029\u2028"
      s2 = s1.encode("utf8")
      expect = '"\\u2029\\u2028"'
      expect_non_ascii = '"\u2029\u2028"'
      self.assertEqual(json.dumps(s1), expect)
      self.assertEqual(json.dumps(s2), expect)
      self.assertEqual(
          json.dumps(s1, ensure_ascii=False), expect_non_ascii
      )
      self.assertEqual(
          json.dumps(s2, ensure_ascii=False), expect_non_ascii
      )
  
imports: import sys
  import codecs
  from unittest import TestCase
  import simplejson
  from simplejson.compat import unichr, text_type, b, BytesIO
label_desc: Use image node_id 15 for calling the TestUnicode obj's underlying member method code with example usage: obj.test_ensure_ascii_linebreak_encoding() without return types