docstr: Test PyUnicode_Contains()
docstr_tok: ["Test","PyUnicode_Contains","(",")"]
code: def test_contains(self):
      """Test PyUnicode_Contains()"""
      from _testcapi import unicode_contains as contains
  
      self.assertEqual(contains("abcd", ""), 1)
      self.assertEqual(contains("abcd", "b"), 1)
      self.assertEqual(contains("abcd", "x"), 0)
      self.assertEqual(contains("abcd", "ж"), 0)
      self.assertEqual(contains("abcd", "\0"), 0)
      self.assertEqual(contains("abc\0def", "\0"), 1)
      self.assertEqual(contains("abcd", "bc"), 1)
  
      self.assertRaises(TypeError, contains, b"abcd", "b")
      self.assertRaises(TypeError, contains, "abcd", b"b")
      self.assertRaises(TypeError, contains, b"abcd", b"b")
      self.assertRaises(TypeError, contains, [], "b")
      self.assertRaises(TypeError, contains, "abcd", ord("b"))
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 46 for calling the CAPITest obj's underlying member method code with example usage: obj.test_contains() without return types