'Check for https://github.com/Julian/jsonschema/issues/164 which
rendered exceptions unusable when a `ValidationError` involved
instances with an `__eq__` method that returned truthy values.'

def test_str_works_with_instances_having_overriden_eq_operator(self):

    instance = mock.MagicMock()
    error = exceptions.ValidationError('a    message', validator='foo', instance=instance, validator_value='some', schema='schema')
    str(error)
    self.assertFalse(instance.__eq__.called)
