コード例 #1
0
ファイル: urlobject_test.py プロジェクト: vartagg/urlblocks
 def test_with_username_replaces_username(self):
     url = URL('https://[email protected]/')
     assert url.with_username('alice') == 'https://[email protected]/'
コード例 #2
0
ファイル: urlobject_test.py プロジェクト: vartagg/urlblocks
 def test_with_username_adds_username(self):
     url = URL('https://github.com/')
     assert url.with_username('zack') == 'https://[email protected]/'