コード例 #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
ファイル: test_unit_utils.py プロジェクト: ESCOMP/CESM_CICE
    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
ファイル: test_unit_utils.py プロジェクト: ESCOMP/CESM_CICE
 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
ファイル: test_unit_utils.py プロジェクト: ESCOMP/CESM_CICE
 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
ファイル: test_unit_utils.py プロジェクト: ESCOMP/CESM_CICE
 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")