diff options
Diffstat (limited to 'tests/test_irc_formatter.py')
-rw-r--r-- | tests/test_irc_formatter.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/test_irc_formatter.py b/tests/test_irc_formatter.py index 4d56aa90..046a0d19 100644 --- a/tests/test_irc_formatter.py +++ b/tests/test_irc_formatter.py @@ -3,14 +3,12 @@ Pygments IRC formatter tests ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import print_function -import unittest - from pygments.util import StringIO from pygments.lexers import PythonLexer from pygments.formatters import IRCFormatter @@ -18,10 +16,9 @@ from pygments.formatters import IRCFormatter tokensource = list(PythonLexer().get_tokens("lambda x: 123")) -class IRCFormatterTest(unittest.TestCase): - def test_correct_output(self): - hfmt = IRCFormatter() - houtfile = StringIO() - hfmt.format(tokensource, houtfile) +def test_correct_output(): + hfmt = IRCFormatter() + houtfile = StringIO() + hfmt.format(tokensource, houtfile) - self.assertEqual(u'\x0302lambda\x03 x: \x0302123\x03\n', houtfile.getvalue()) + assert u'\x0302lambda\x03 x: \x0302123\x03\n' == houtfile.getvalue() |