Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
 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')
Пример #4
0
 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')
Пример #5
0
 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")
Пример #6
0
 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')
Пример #7
0
 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')
Пример #8
0
 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")