In Python 3 __ne__ by default delegates to __eq__ and inverts the result, but in Python 2 they urge you to define __ne__ when you define __eq__ for it to work properly [1]. [1]https://docs.python.org/2/reference/datamodel.html#object.__ne__ Change-Id: Ibc8ca97679c1e036290d8e745eae2dbbca4913ad