summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-01-25 18:58:20 +0100
committergbrandl <devnull@localhost>2007-01-25 18:58:20 +0100
commit7e3009c2fc5e6ff04396dbd91a8894c5f442bd85 (patch)
tree17ff427079feeb4608f24895a8cd2a3697b82819 /tests/test_basic_api.py
parentc40c9322046cd975f754405efb6cbef970b2293e (diff)
downloadpygments-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.py4
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(): 'รค'"))