def test_invalid_ssh_url(self): url = "[email protected]/goatsy" self.assertEqual(validate_git_url(url), (False, None))
def test_ssh_url(self): url = "[email protected]:goat" self.assertEqual(validate_git_url(url), (True, url))
def test_local_git(self): url = constants.ROOT_PATH self.assertEqual(validate_git_url(url), (True, url))
def test_http_url(self): url = "http://goaty.org" self.assertEqual(validate_git_url(url), (True, url))
def test_https_url(self): url = "https://secret-goatsy.org" self.assertEqual(validate_git_url(url), (True, url))
def test_empty_url(self): """ This is needed to allow the user to finish the sequence """ self.assertEqual(validate_git_url(""), (True, ""))