docstr: Test PyUnicode_DecodeRawUnicodeEscape()
docstr_tok: ["Test","PyUnicode_DecodeRawUnicodeEscape","(",")"]
code: def test_decoderawunicodeescape(self):
      """Test PyUnicode_DecodeRawUnicodeEscape()"""
      decoderawunicodeescape = _testcapi.unicode_decoderawunicodeescape
  
      self.assertEqual(decoderawunicodeescape(b"abc"), "abc")
      self.assertEqual(
          decoderawunicodeescape(b"\t\n\r\v\f\0\\"), "\t\n\r\v\f\0\\"
      )
      self.assertEqual(decoderawunicodeescape(b"\xa1\xa2"), "\xa1\xa2")
      self.assertEqual(
          decoderawunicodeescape(rb"\u4f60\u597d"), "\u4f60\u597d"
      )
      self.assertEqual(
          decoderawunicodeescape(rb"\U0001f600"), "\U0001f600"
      )
      self.assertEqual(
          decoderawunicodeescape(rb"\xa1\xa2"), r"\xa1\xa2"
      )
      self.assertEqual(decoderawunicodeescape(rb"\z"), r"\z")
  
      for b in rb"\u4f6", rb"\U0001f60":
          self.assertRaises(
              UnicodeDecodeError, decoderawunicodeescape, b
          )
          self.assertRaises(
              UnicodeDecodeError, decoderawunicodeescape, b, "strict"
          )
      self.assertEqual(
          decoderawunicodeescape(rb"x\U0001f60", "replace"), "x\ufffd"
      )
      self.assertEqual(
          decoderawunicodeescape(rb"x\U0001f60y", "replace"), "x\ufffdy"
      )
  
      self.assertRaises(
          LookupError, decoderawunicodeescape, rb"\U0001f60", "foo"
      )
  
imports: import unittest
  import sys
  from test.support import import_helper
label_desc: Use image node_id 21 for calling the CAPITest obj's underlying member method code with example usage: obj.test_decoderawunicodeescape() without return types