MCPcopy Index your code
hub / github.com/clips/pattern / test_url_headers

Method test_url_headers

test/test_web.py:203–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 print "pattern.web.URL.mimetype"
202
203 def test_url_headers(self):
204 # Assert URL headers.
205 v = web.URL(self.live).headers["content-type"].split(";")[0]
206 self.assertEqual(v, "text/html")
207 print "pattern.web.URL.headers"
208
209 def test_url_redirect(self):
210 # Assert URL redirected URL (this depends on where you are).

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected