def METHOD_NAME(self):
    lexer = pygments.lexers.get_lexer_by_name(self.lexer)
    tokens = lexer.get_tokens(self.input)
    self.actual = '\n'.join(self._prettyprint_tokens(tokens)).rstrip('\n') + '\n'
    if not self.config.getoption('--update-goldens'):
        assert self.actual == self.expected