docstr: Test PyUnicode_CompareWithASCIIString()
docstr_tok: ["Test","PyUnicode_CompareWithASCIIString","(",")"]
code: def test_comparewithasciistring(self):
      """Test PyUnicode_CompareWithASCIIString()"""
      from _testcapi import (
          unicode_comparewithasciistring as comparewithasciistring,
      )
  
      self.assertEqual(comparewithasciistring("abc", b"abc"), 0)
      self.assertEqual(comparewithasciistring("abc", b"def"), -1)
      self.assertEqual(comparewithasciistring("def", b"abc"), 1)
      self.assertEqual(comparewithasciistring("abc", b"abc\0def"), 0)
      self.assertEqual(
          comparewithasciistring("abc\0def", b"abc\0def"), 1
      )
      self.assertEqual(comparewithasciistring("абв", b"abc"), 1)
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 41 for calling the CAPITest obj's underlying member method code with example usage: obj.test_comparewithasciistring() without return types