I think, you should test that obj and obj actually equal:
http://docs.python.org/3/reference/datamodel.html#object.__eq__
> There are no implied relationships among the comparison operators. The truth of x==y does not imply that x!=y is false.