def verify_object_updated(self, new_kwargs, zenpy_object):
updated_object = self.unpack_object(zenpy_object)<EOL>self.assertIsInstance(updated_object, self.ZenpyType)<EOL>self.assertInCache(updated_object)<EOL>for attr_name, attr in new_kwargs.items():<EOL><INDENT>if isinstance(attr, basestring):<EOL><INDENT>self.assertEqual(getattr(updated_object, attr_name), new_kwargs[attr_name])<EOL>self.assertCacheUpdated(updated_object, attr_name, attr)<EOL><DEDENT><DEDENT>self.assertFalse(updated_object._dirty_attributes)<EOL>
Given a dict of updated kwargs and a Zenpy object, verify it was correctly updated.