예제 #1
0
 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"),
     )
예제 #2
0
 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"]),
     )
예제 #3
0
 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"),
     )
예제 #4
0
 def test_rcp_style(self):
     self.assertEqual("https://github.com/jelmer/blah.git",
                      sanitize_url("github.com:jelmer/blah"))
예제 #5
0
 def test_simple(self):
     self.assertEqual(
         "https://github.com/jelmer/blah.git",
         sanitize_url("http://github.com/jelmer/blah"),
     )