def __eq__(self, text):
for transform in self.TRANSFORMS:<EOL><INDENT>text = transform(text)<EOL><DEDENT>if '<STR_LIT>' in text and "<STR_LIT>" in text:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format("<STR_LIT>"))<EOL><DEDENT>self._updates.add(text)<EOL>is_equal = super(Baseline, self).__eq__(text)<EOL>if not is_equal:<EOL><INDENT>if not self._baselines_to_update:<EOL><INDENT>atexit.register(Baseline._atexit_callback)<EOL><DEDENT>self._baselines_to_update.add(self)<EOL><DEDENT>return is_equal<EOL>
Compare string against baseline.

        Save a copy of the string in order to later update the string
        in the source code file in the event any comparison against
        this baseline fails.

        :param str text: string to compare against baseline
        :returns: indication if string matches baseline
        :rtype: bool