Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)