Beispiel #1
0
    def test_url_local_user(self):
        """verify that a local path with '~/path/to/repo' gets rejected

        """
        url = '~/path/to/repo'
        is_remote = is_remote_url(url)
        self.assertFalse(is_remote)
    def test_url_local_user(self):
        """verify that a local path with '~/path/to/repo' gets rejected

        """
        url = '~/path/to/repo'
        is_remote = is_remote_url(url)
        self.assertFalse(is_remote)
 def test_url_local_rel(self):
     """verify that a local relative path gets rejected
     """
     url = '../../path/to/repo'
     is_remote = is_remote_url(url)
     self.assertFalse(is_remote)
 def test_url_local_abs(self):
     """verify that a local abs path gets rejected
     """
     url = '/path/to/repo'
     is_remote = is_remote_url(url)
     self.assertFalse(is_remote)
 def test_url_local_var(self):
     """verify that a local path with an env var '$HOME' gets rejected
     """
     url = '$HOME/path/to/repo'
     is_remote = is_remote_url(url)
     self.assertFalse(is_remote)
 def test_url_remote_https(self):
     """verify that a remote https url is identified.
     """
     url = 'https://somewhere'
     is_remote = is_remote_url(url)
     self.assertTrue(is_remote)
 def test_url_remote_ssh(self):
     """verify that a remote ssh url is identified.
     """
     url = 'ssh://user@somewhere'
     is_remote = is_remote_url(url)
     self.assertTrue(is_remote)
 def test_url_remote_git(self):
     """verify that a remote git url is identified.
     """
     url = 'git@somewhere'
     is_remote = is_remote_url(url)
     self.assertTrue(is_remote)
Beispiel #9
0
 def test_url_local_rel(self):
     """verify that a local relative path gets rejected
     """
     url = '../../path/to/repo'
     is_remote = is_remote_url(url)
     self.assertFalse(is_remote)
Beispiel #10
0
 def test_url_local_abs(self):
     """verify that a local abs path gets rejected
     """
     url = '/path/to/repo'
     is_remote = is_remote_url(url)
     self.assertFalse(is_remote)
Beispiel #11
0
 def test_url_local_var(self):
     """verify that a local path with an env var '$HOME' gets rejected
     """
     url = '$HOME/path/to/repo'
     is_remote = is_remote_url(url)
     self.assertFalse(is_remote)
Beispiel #12
0
 def test_url_remote_https(self):
     """verify that a remote https url is identified.
     """
     url = 'https://somewhere'
     is_remote = is_remote_url(url)
     self.assertTrue(is_remote)
Beispiel #13
0
 def test_url_remote_ssh(self):
     """verify that a remote ssh url is identified.
     """
     url = 'ssh://user@somewhere'
     is_remote = is_remote_url(url)
     self.assertTrue(is_remote)
Beispiel #14
0
 def test_url_remote_git(self):
     """verify that a remote git url is identified.
     """
     url = 'git@somewhere'
     is_remote = is_remote_url(url)
     self.assertTrue(is_remote)