diff options
author | gbrandl <devnull@localhost> | 2007-01-25 18:58:20 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-01-25 18:58:20 +0100 |
commit | 7e3009c2fc5e6ff04396dbd91a8894c5f442bd85 (patch) | |
tree | 17ff427079feeb4608f24895a8cd2a3697b82819 /tests/test_basic_api.py | |
parent | c40c9322046cd975f754405efb6cbef970b2293e (diff) | |
download | pygments-7e3009c2fc5e6ff04396dbd91a8894c5f442bd85.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(): 'รค'")) |