docstr: Test PyUnicode_RichCompare()
docstr_tok: ["Test","PyUnicode_RichCompare","(",")"]
code: def test_richcompare(self):
      """Test PyUnicode_RichCompare()"""
      from _testcapi import unicode_richcompare as richcompare
  
      LT, LE, EQ, NE, GT, GE = range(6)
      strings = ("abc", "абв", "\U0001f600", "abc\0")
      for s1 in strings:
          for s2 in strings:
              self.assertIs(richcompare(s1, s2, LT), s1 < s2)
              self.assertIs(richcompare(s1, s2, LE), s1 <= s2)
              self.assertIs(richcompare(s1, s2, EQ), s1 == s2)
              self.assertIs(richcompare(s1, s2, NE), s1 != s2)
              self.assertIs(richcompare(s1, s2, GT), s1 > s2)
              self.assertIs(richcompare(s1, s2, GE), s1 >= s2)
  
      for op in LT, LE, EQ, NE, GT, GE:
          self.assertIs(richcompare(b"abc", "abc", op), NotImplemented)
          self.assertIs(richcompare("abc", b"abc", op), NotImplemented)
          self.assertIs(richcompare(b"abc", b"abc", op), NotImplemented)
          self.assertIs(richcompare([], "abc", op), NotImplemented)
          self.assertIs(richcompare("abc", [], op), NotImplemented)
          self.assertIs(richcompare([], [], op), NotImplemented)
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 44 for calling the CAPITest obj's underlying member method code with example usage: obj.test_richcompare() without return types