def is_equal_to(self, other, **kwargs):
if self._check_dict_like(self.val, check_values=False, return_as_bool=True) andself._check_dict_like(other, check_values=False, return_as_bool=True):<EOL><INDENT>if self._dict_not_equal(self.val, other, ignore=kwargs.get('<STR_LIT:ignore>'), include=kwargs.get('<STR_LIT>')):<EOL><INDENT>self._dict_err(self.val, other, ignore=kwargs.get('<STR_LIT:ignore>'), include=kwargs.get('<STR_LIT>'))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.val != other:<EOL><INDENT>self._err('<STR_LIT>' % (self.val, other))<EOL><DEDENT><DEDENT>return self<EOL>
Asserts that val is equal to other.