def test_without_username_removes_username(self): url = URL('https://[email protected]/') assert url.without_username() == 'https://github.com/'