diff options
author | gbrandl <devnull@localhost> | 2006-12-20 15:40:23 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2006-12-20 15:40:23 +0100 |
commit | bbed4bdf100fc75e5ac31fa10976bff23e84bd7c (patch) | |
tree | b3c0e83e9830091d891c48024a78115928b000be /tests/test_cmdline.py | |
parent | dad05e84c38c47fe4b429bb298a8d307fb964d01 (diff) | |
download | pygments-bbed4bdf100fc75e5ac31fa10976bff23e84bd7c.tar.gz |
[svn] Add a test case for -O option.
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 0f8d4b46..8f5d43ae 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -36,6 +36,13 @@ class CmdLineTest(unittest.TestCase): self.assert_(c == 0) self.assert_(o.find("Lexers") and o.find("Formatters")) + def test_O_opt(self): + filename = os.path.join(testdir, testfile) + c, o, e = run_cmdline("-Ofull=1,linenos=true", "-fhtml", filename) + self.assertEquals(c, 0) + self.assert_("<html" in o) + self.assert_('class="linenos"' in o) + def test_invalid_opts(self): for opts in [("-L", "-lpy"), ("-L", "-fhtml"), ("-L", "-Ox"), ("-a",), ("-Sst", "-lpy")]: |