class_docstr: Test equality and ordering comparisons for built-in types and
  user-defined classes that implement relevant combinations of rich
  comparison methods.
class_docstr_tok: ["Test","equality","and","ordering","comparisons","for","built-in","types","and","user-defined","classes","that","implement","relevant","combinations","of","rich","comparison","methods","."]
docstr: Assert equality result and that ordering is not implemented.
  
  a, b: Instances to be tested (of same or different type).
  equal: Boolean indicating the expected equality comparison results.
docstr_tok: ["Assert","equality","result","and","that","ordering","is","not","implemented",".","a",",","b",":","Instances","to","be","tested","(","of","same","or","different","type",")",".","equal",":","Boolean","indicating","the","expected","equality","comparison","results","."]
code: def assert_equality_only(self, a, b, equal):
      """Assert equality result and that ordering is not implemented.
  
      a, b: Instances to be tested (of same or different type).
      equal: Boolean indicating the expected equality comparison results.
      """
      self.assertEqual(a == b, equal)
      self.assertEqual(b == a, equal)
      self.assertEqual(a != b, not equal)
      self.assertEqual(b != a, not equal)
      with self.assertRaisesRegex(TypeError, "not supported"):
          a < b
      with self.assertRaisesRegex(TypeError, "not supported"):
          a <= b
      with self.assertRaisesRegex(TypeError, "not supported"):
          a > b
      with self.assertRaisesRegex(TypeError, "not supported"):
          a >= b
      with self.assertRaisesRegex(TypeError, "not supported"):
          b < a
      with self.assertRaisesRegex(TypeError, "not supported"):
          b <= a
      with self.assertRaisesRegex(TypeError, "not supported"):
          b > a
      with self.assertRaisesRegex(TypeError, "not supported"):
          b >= a
  
imports: import unittest
  from test.support import ALWAYS_EQ
  from fractions import Fraction
  from decimal import Decimal
label_desc: Use image node_id 2 for calling the ComparisonFullTest obj's underlying member method code with example usage: obj.assert_equality_only(a, b, equal) without return types