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