def modify_object(self, zenpy_object):
def hash_of(to_hash):<EOL><INDENT>return hashlib.sha1(to_hash.encode()).hexdigest()<EOL><DEDENT>new_kwargs = self.object_kwargs.copy()<EOL>for attr_name in new_kwargs:<EOL><INDENT>if isinstance(new_kwargs[attr_name], basestring) and attr_name not in self.ignore_update_kwargs:<EOL><INDENT>new_kwargs[attr_name] += hash_of(new_kwargs[attr_name])<EOL>setattr(zenpy_object, attr_name, new_kwargs[attr_name])<EOL>self.assertTrue(attr_name in zenpy_object._dirty_attributes,<EOL>msg="<STR_LIT>")<EOL><DEDENT><DEDENT>return zenpy_object, new_kwargs<EOL>
Given a Zenpy object, modify it by hashing it's kwargs and appending the result to the
existing values.