class documentation
class KleinEqualityTestCase(unittest.TestCase, EqualityTestsMixin): (source)
Tests for Klein
's implementation of == and !=.
Method | an |
Return an instance of the class under test. Each call to this method must return a different object. All objects returned must be equal to each other. |
Method | another |
Return an instance of the class under test. Each call to this method must return a different object. The objects must not be equal to the objects returned by anInstance. They may or may not be equal to each other (they will not be compared against each other). |
Class | _ |
Undocumented |
Class Variable | _another |
Undocumented |
Inherited from EqualityTestsMixin
:
Method | test_another |
The object does not compare equal to an object of an unrelated type (which does not implement the comparison) using the == operator. |
Method | test_another |
The object compares not equal to an object of an unrelated type (which does not implement the comparison) using the != operator. |
Method | test_delegated |
The result of comparison using == is delegated to the right-hand operand if it is of an unrelated type. |
Method | test_delegate |
The result of comparison using != is delegated to the right-hand operand if it is of an unrelated type. |
Method | test_different |
Two objects that are not equal to each other do not compare equal to each other using the == operator. |
Method | test_different |
Two objects that are not equal to each other compare not equal to each other using the != operator. |
Method | test_identical |
An object compares equal to itself using the == operator. |
Method | test_identical |
An object doesn't compare not equal to itself using the != operator. |
Method | test_same |
Two objects that are equal to each other compare equal to each other using the == operator. |
Method | test_same |
Two objects that are equal to each other do not compare not equal to each other using the != operator. |
Return an instance of the class under test. Each call to this method must return a different object. All objects returned must be equal to each other.