コード例 #1
0
 def test_set_url(self):
     r = tutils.treq_absolute()
     r.url = "https://otheraddress:42/ORLY"
     assert r.scheme == "https"
     assert r.host == "otheraddress"
     assert r.port == 42
     assert r.path == "/ORLY"
コード例 #2
0
 def test_set_url(self):
     r = tutils.treq_absolute()
     r.set_url("https://otheraddress:42/ORLY")
     assert r.scheme == "https"
     assert r.host == "otheraddress"
     assert r.port == 42
     assert r.path == "/ORLY"