Esempio n. 1
0
 def test_invalid_ssh_url(self):
     url = "[email protected]/goatsy"
     self.assertEqual(validate_git_url(url), (False, None))
Esempio n. 2
0
 def test_ssh_url(self):
     url = "[email protected]:goat"
     self.assertEqual(validate_git_url(url), (True, url))
Esempio n. 3
0
 def test_local_git(self):
     url = constants.ROOT_PATH
     self.assertEqual(validate_git_url(url), (True, url))
Esempio n. 4
0
 def test_http_url(self):
     url = "http://goaty.org"
     self.assertEqual(validate_git_url(url), (True, url))
Esempio n. 5
0
 def test_https_url(self):
     url = "https://secret-goatsy.org"
     self.assertEqual(validate_git_url(url), (True, url))
Esempio n. 6
0
 def test_invalid_ssh_url(self):
     url = "[email protected]/goatsy"
     self.assertEqual(validate_git_url(url), (False, None))
Esempio 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, ""))
Esempio n. 8
0
 def test_local_git(self):
     url = constants.ROOT_PATH
     self.assertEqual(validate_git_url(url), (True, url))
Esempio n. 9
0
 def test_ssh_url(self):
     url = "[email protected]:goat"
     self.assertEqual(validate_git_url(url), (True, url))
Esempio n. 10
0
 def test_https_url(self):
     url = "https://secret-goatsy.org"
     self.assertEqual(validate_git_url(url), (True, url))
Esempio n. 11
0
 def test_http_url(self):
     url = "http://goaty.org"
     self.assertEqual(validate_git_url(url), (True, url))
Esempio 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, ""))