diff options
Diffstat (limited to 'tests/farm/html/run_tabbed.py')
| -rw-r--r-- | tests/farm/html/run_tabbed.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/farm/html/run_tabbed.py b/tests/farm/html/run_tabbed.py new file mode 100644 index 00000000..0e9b5278 --- /dev/null +++ b/tests/farm/html/run_tabbed.py @@ -0,0 +1,24 @@ +def html_it(): + """Run coverage and make an HTML report for tabbed.""" + import coverage + cov = coverage.coverage() + cov.start() + import tabbed # pragma: nested + cov.stop() # pragma: nested + cov.html_report(tabbed, directory="../html_tabbed") + +runfunc(html_it, rundir="src") + +# Editors like to change things, make sure our source file still has tabs. +contains("src/tabbed.py", "\tif x:\t\t\t\t\t# look nice") + +contains("html_tabbed/tabbed.html", + "> <span class='key'>if</span> " + "<span class='nam'>x</span><span class='op'>:</span>" + " " + " " + "<span class='com'># look nice</span>" + ) + +doesnt_contain("html_tabbed/tabbed.html", "\t") +clean("html_tabbed") |
