summaryrefslogtreecommitdiff
path: root/test/farm/html/run_tabbed.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-15 17:53:24 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-15 17:53:24 -0500
commit7bdce80a45920e3888ac0366fdbfb54c6604eba6 (patch)
tree7fe9a9a28931e25d0cc93ea5b27c80ec07951724 /test/farm/html/run_tabbed.py
parent47da566616f14caad010da58f4899a58ebc0b4ae (diff)
downloadpython-coveragepy-git-7bdce80a45920e3888ac0366fdbfb54c6604eba6.tar.gz
Tabs are 8 spaces, as the Python docs dictate. Fixes issue #31.
Diffstat (limited to 'test/farm/html/run_tabbed.py')
-rw-r--r--test/farm/html/run_tabbed.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/farm/html/run_tabbed.py b/test/farm/html/run_tabbed.py
index 88ffcaef..e7e60cec 100644
--- a/test/farm/html/run_tabbed.py
+++ b/test/farm/html/run_tabbed.py
@@ -10,12 +10,14 @@ def html_it():
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\t# look nice")
+contains("src/tabbed.py", "\tif x:\t\t\t\t\t# look nice")
contains("html/tabbed.html",
- ">&nbsp; &nbsp; <span class='key'>if</span> <span class='nam'>x</span>"
- "<span class='op'>:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"
- " &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span class='com'># look nice</span>"
+ ">&nbsp; &nbsp; &nbsp; &nbsp; <span class='key'>if</span> "
+ "<span class='nam'>x</span><span class='op'>:</span>"
+ "&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "
+ "&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; "
+ "<span class='com'># look nice</span>"
)
doesnt_contain("html/tabbed.html", "\t")