def is_equal_to_ignoring_case(self, other):
if not isinstance(self.val, str_types):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not isinstance(other, str_types):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if self.val.lower() != other.lower():<EOL><INDENT>self._err('<STR_LIT>' % (self.val, other))<EOL><DEDENT>return self<EOL>
Asserts that val is case-insensitive equal to other.