MCPcopy Create free account
hub / github.com/davisking/dlib / test_url_escaping

Method test_url_escaping

tools/htmlify/test_htmlify.py:84–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 self.assertEqual(Links(output / "main.cpp.html").urls, ["examples/local.h.html"])
83
84 def test_url_escaping(self):
85 filename = "odd #&' name.h"
86 self.main.write_text('#include "' + filename + '"\n')
87 self.put("examples/" + filename, "// punctuation in filename\n")
88 output = self.render()
89 self.assertEqual(
90 Links(output / "main.cpp.html").urls,
91 ["examples/odd%20%23%26%27%20name.h.html"],
92 )
93
94 def test_output_modes(self):
95 numbered = self.render("numbered", "-n")

Callers

nothing calls this directly

Calls 3

putMethod · 0.95
renderMethod · 0.95
LinksClass · 0.85

Tested by

no test coverage detected