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