docstr: Test PyUnicode_Join()
docstr_tok: ["Test","PyUnicode_Join","(",")"]
code: def test_join(self):
      """Test PyUnicode_Join()"""
      from _testcapi import unicode_join as join
  
      self.assertEqual(join("|", ["a", "b", "c"]), "a|b|c")
      self.assertEqual(join("|", ["a", "", "c"]), "a||c")
      self.assertEqual(join("", ["a", "b", "c"]), "abc")
      self.assertEqual(join(NULL, ["a", "b", "c"]), "a b c")
      self.assertEqual(join("|", ["а", "б", "в"]), "а|б|в")
      self.assertEqual(join("ж", ["а", "б", "в"]), "ажбжв")
      self.assertRaises(TypeError, join, b"|", ["a", "b", "c"])
      self.assertRaises(TypeError, join, "|", [b"a", b"b", b"c"])
      self.assertRaises(TypeError, join, NULL, [b"a", b"b", b"c"])
      self.assertRaises(TypeError, join, "|", b"123")
      self.assertRaises(TypeError, join, "|", 123)
      self.assertRaises(SystemError, join, "|", NULL)
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 34 for calling the CAPITest obj's underlying member method code with example usage: obj.test_join() without return types