code: def _test_encode_basestring_ascii(self, encode_basestring_ascii):
      fname = encode_basestring_ascii.__name__
      for input_string, expect in CASES:
          result = encode_basestring_ascii(input_string)
          # self.assertEqual(result, expect,
          #    '{0!r} != {1!r} for {2}({3!r})'.format(
          #        result, expect, fname, input_string))
          self.assertEqual(
              result,
              expect,
              "%r != %r for %s(%r)"
              % (result, expect, fname, input_string),
          )
  
file_path: catboost/contrib/python/simplejson/py2/simplejson/tests/test_encode_basestring_ascii.py
imports: from unittest import TestCase
  import simplejson.encoder
  from simplejson.compat import b
label_desc: Use image node_id 3 for calling the TestEncodeBaseStringAscii obj's underlying member method code with example usage: obj._test_encode_basestring_ascii(encode_basestring_ascii) without return types