summaryrefslogtreecommitdiff
path: root/test/test_html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-10 09:31:12 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-10 09:31:12 -0500
commit80d952221a02287e71f5b4457623f681dcc979a1 (patch)
tree4227b99d021113e17636510b326dde4c99cfedf6 /test/test_html.py
parent55cf19a0a29042cabbaf53644ee13d037ce88afb (diff)
downloadpython-coveragepy-git-80d952221a02287e71f5b4457623f681dcc979a1.tar.gz
Refactor the config parsing.
Diffstat (limited to 'test/test_html.py')
-rw-r--r--test/test_html.py24
1 files changed, 18 insertions, 6 deletions
diff --git a/test/test_html.py b/test/test_html.py
index 73e46b20..58e21a0c 100644
--- a/test/test_html.py
+++ b/test/test_html.py
@@ -165,19 +165,31 @@ class HtmlTest(CoverageTest):
def test_title_set_in_config_file(self):
self.create_initial_files()
- self.make_file(".coveragerc", "[html]\ntitle = My nüms & stüff!\n")
+ self.make_file(".coveragerc", "[html]\ntitle = «ταБЬℓσ» & stüff!\n")
self.run_coverage()
index = open("htmlcov/index.html").read()
- self.assertIn("<title>My n&#252;ms &amp; st&#252;ff!</title>", index)
- self.assertIn("<h1>My n&#252;ms &amp; st&#252;ff!:", index)
+ self.assertIn(
+ "<title>&#171;&#964;&#945;&#1041;&#1068;&#8467;&#963;&#187;"
+ " &amp; st&#252;ff!</title>", index
+ )
+ self.assertIn(
+ "<h1>&#171;&#964;&#945;&#1041;&#1068;&#8467;&#963;&#187;"
+ " &amp; st&#252;ff!:", index
+ )
def test_title_set_in_args(self):
self.create_initial_files()
self.make_file(".coveragerc", "[html]\ntitle = Good title\n")
- self.run_coverage(htmlargs=dict(title="My nüms & stüff!"))
+ self.run_coverage(htmlargs=dict(title="«ταБЬℓσ» & stüff!"))
index = open("htmlcov/index.html").read()
- self.assertIn("<title>My n&#252;ms &amp; st&#252;ff!</title>", index)
- self.assertIn("<h1>My n&#252;ms &amp; st&#252;ff!:", index)
+ self.assertIn(
+ "<title>&#171;&#964;&#945;&#1041;&#1068;&#8467;&#963;&#187;"
+ " &amp; st&#252;ff!</title>", index
+ )
+ self.assertIn(
+ "<h1>&#171;&#964;&#945;&#1041;&#1068;&#8467;&#963;&#187;"
+ " &amp; st&#252;ff!:", index
+ )
class HtmlWithUnparsableFilesTest(CoverageTest):