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