diff options
| author | Georg Brandl <georg@python.org> | 2007-01-25 18:58:20 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2007-01-25 18:58:20 +0100 |
| commit | d2d1ec5a46a69a7419e03ac65492be4a61d3ce6c (patch) | |
| tree | 17ff427079feeb4608f24895a8cd2a3697b82819 /tests/test_basic_api.py | |
| parent | 25aa1c390dce75c8721e65c9e56cd085d437a20c (diff) | |
| download | pygments-git-d2d1ec5a46a69a7419e03ac65492be4a61d3ce6c.tar.gz | |
[svn] Allow dropping style files into the styles subpackage.
Diffstat (limited to 'tests/test_basic_api.py')
| -rw-r--r-- | tests/test_basic_api.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index 2a967317..a8b4ea96 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -89,6 +89,10 @@ class FormattersTest(unittest.TestCase): inst.get_style_defs() inst.format(ts, out) + def test_styles(self): + from pygments.formatters import HtmlFormatter + fmt = HtmlFormatter(style="pastie") + def test_unicode_handling(self): # test that the formatter supports encoding and Unicode tokens = list(lexers.PythonLexer(encoding='utf-8').get_tokens("def f(): 'รค'")) |
