code: def test_encoding_error(self):
      snowman = "\u2603"
      a = adapt(snowman)
      self.assertRaises(UnicodeEncodeError, a.getquoted)
  
imports: from .None import testutils
  import unittest
  from .testutils import ConnectingTestCase, skip_if_crdb
  import psycopg2
  import psycopg2.extensions
  from psycopg2.extensions import adapt, quote_ident
label_desc: Use image node_id 2 for calling the TestStringAdapter obj's underlying member method code with example usage: obj.test_encoding_error() without return types