def test_git_http(self): self.assertEqual( "https://github.com/jelmer/blah.git", sanitize_url("git+http://github.com/jelmer/blah"), ) self.assertEqual( "https://github.com/jelmer/blah.git", sanitize_url("git+https://github.com/jelmer/blah"), )
def test_cvs(self): self.assertEqual( "cvs+ssh://[email protected]/cvs#jupp", sanitize_url([":extssh:[email protected]:/cvs", "jupp"]), ) self.assertEqual( "cvs+pserver://[email protected]/cvs#jupp", sanitize_url([":pserver:[email protected]:/cvs", "jupp"]), )
def test_insecure_savannah(self): self.assertEqual( "https://git.savannah.gnu.org/cgit/gforth.git", sanitize_url("http://git.savannah.gnu.org/cgit/gforth.git"), )
def test_rcp_style(self): self.assertEqual("https://github.com/jelmer/blah.git", sanitize_url("github.com:jelmer/blah"))
def test_simple(self): self.assertEqual( "https://github.com/jelmer/blah.git", sanitize_url("http://github.com/jelmer/blah"), )