Lines Matching refs:__ne__
55 """object.__ne__() should allow reflected __ne__() to be tried"""
58 # Inherits object.__ne__()
66 def __ne__(*args):
67 calls.append('Right.__ne__')
70 self.assertSequenceEqual(calls, ['Left.__eq__', 'Right.__ne__'])
73 """object.__ne__() should not invoke reflected __eq__()"""
76 # Inherits object.__ne__()
84 def __ne__(*args):
85 calls.append('Derived.__ne__')
88 self.assertSequenceEqual(calls, ['Derived.__ne__', 'Base.__eq__'])
91 """No default delegation between operations except __ne__()"""
104 __ne__ = unexpected
149 def __ne__(self, other):
156 def __ne__(self, other):