예제 #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, ""))