def test_url_local_url_unchanged(self): """verify that a local path is unchanged """ url = '/path/to/repo' received = split_remote_url(url) self.assertEqual(received, url)
def test_url_remote_https(self): """verify that a remote http url is identified. """ url = 'http://somewhere.gov/path/to/repo' received = split_remote_url(url) self.assertEqual(received, 'somewhere.gov/path/to/repo')
def test_url_remote_ssh(self): """verify that a remote ssh url is identified. """ url = 'ssh://[email protected]/path/to/repo' received = split_remote_url(url) self.assertEqual(received, 'somewhere.com/path/to/repo')
def test_url_remote_git(self): """verify that a remote git url is identified. """ url = '[email protected]:org/repo' received = split_remote_url(url) self.assertEqual(received, "org/repo")