示例#1
0
 def test_invalid_ssh_url(self):
     url = "[email protected]/goatsy"
     self.assertEqual(validate_git_url(url), (False, None))
示例#2
0
 def test_ssh_url(self):
     url = "[email protected]:goat"
     self.assertEqual(validate_git_url(url), (True, url))
示例#3
0
 def test_local_git(self):
     url = constants.ROOT_PATH
     self.assertEqual(validate_git_url(url), (True, url))
示例#4
0
 def test_http_url(self):
     url = "http://goaty.org"
     self.assertEqual(validate_git_url(url), (True, url))
示例#5
0
 def test_https_url(self):
     url = "https://secret-goatsy.org"
     self.assertEqual(validate_git_url(url), (True, url))
示例#6
0
 def test_invalid_ssh_url(self):
     url = "[email protected]/goatsy"
     self.assertEqual(validate_git_url(url), (False, None))
示例#7
0
 def test_empty_url(self):
     """ This is needed to allow the user to finish the sequence """
     self.assertEqual(validate_git_url(""), (True, ""))
示例#8
0
 def test_local_git(self):
     url = constants.ROOT_PATH
     self.assertEqual(validate_git_url(url), (True, url))
示例#9
0
 def test_ssh_url(self):
     url = "[email protected]:goat"
     self.assertEqual(validate_git_url(url), (True, url))
示例#10
0
 def test_https_url(self):
     url = "https://secret-goatsy.org"
     self.assertEqual(validate_git_url(url), (True, url))
示例#11
0
 def test_http_url(self):
     url = "http://goaty.org"
     self.assertEqual(validate_git_url(url), (True, url))
示例#12
0
 def test_empty_url(self):
     """ This is needed to allow the user to finish the sequence """
     self.assertEqual(validate_git_url(""), (True, ""))