docstr: Test PyUnicode_DecodeASCII()
docstr_tok: ["Test","PyUnicode_DecodeASCII","(",")"]
code: def test_decodeascii(self):
      """Test PyUnicode_DecodeASCII()"""
      decodeascii = _testcapi.unicode_decodeascii
  
      self.assertEqual(decodeascii(b"abc"), "abc")
      self.assertEqual(decodeascii(b"abc", "strict"), "abc")
  
      self.assertRaises(UnicodeDecodeError, decodeascii, b"\xff")
      self.assertEqual(decodeascii(b"a\xff", "replace"), "a\ufffd")
      self.assertEqual(decodeascii(b"a\xffb", "replace"), "a\ufffdb")
  
      self.assertRaises(LookupError, decodeascii, b"a\xff", "foo")
  
imports: import unittest
  import sys
  from test.support import import_helper
label_desc: Use image node_id 15 for calling the CAPITest obj's underlying member method code with example usage: obj.test_decodeascii() without return types