def _PerformAppleAppleOrangeChecks(self, same_a, same_b, different):
    self.assertTrue(same_a == same_b)
    self.assertFalse(same_a != same_b)
    self.assertEqual(same_a, same_b)
    self.assertEquals(same_a, same_b)
    self.failUnlessEqual(same_a, same_b)
    if PY_VERSION_2:
      # Python 3 removes the global cmp function
      self.assertEqual(0, cmp(same_a, same_b))

    self.assertFalse(same_a == different)
    self.assertTrue(same_a != different)
    self.assertNotEqual(same_a, different)
    self.assertNotEquals(same_a, different)
    self.failIfEqual(same_a, different)
    if PY_VERSION_2:
      self.assertNotEqual(0, cmp(same_a, different))

    self.assertFalse(same_b == different)
    self.assertTrue(same_b != different)
    self.assertNotEqual(same_b, different)
    self.assertNotEquals(same_b, different)
    self.failIfEqual(same_b, different)
    if PY_VERSION_2:
      self.assertNotEqual(0, cmp(same_b, different))
Perform consistency checks with two apples and an orange.
dataset/ETHPy150Open google/google-apputils/tests/basetest_test.py/EqualityAssertionTest._PerformAppleAppleOrangeChecks