attributes == obj.attributes

will it work?