Esempio n. 1
0
 def test_with_username_replaces_username(self):
     url = URLObject('https://[email protected]/')
     assert url.with_username('alice') == 'https://[email protected]/'
Esempio n. 2
0
 def test_with_username_adds_username(self):
     url = URLObject('https://github.com/')
     assert url.with_username('zack') == 'https://[email protected]/'