Example #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"
Example #2
0
    def test_set_url(self):
        r = tutils.treq_absolute()
        r.url = "https://*****:*****@bar"
            assert False
        except:
            assert True
Example #3
0
    def test_set_url(self):
        r = tutils.treq_absolute()
        r.url = "https://*****:*****@bar"
            assert False
        except:
            assert True