예제 #1
0
파일: test_bzr.py 프로젝트: btubbs/vcstools
    def test_url_matches_with_shortcut(self):
        # bzr on launchpad should have shared repository
        client = BzrClient(self.local_path)
        url = 'lp:bzr'
        url2 = self.get_launchpad_info(url)
        self.assertFalse(url2 is None)
        self.assertTrue(client.url_matches(url2, url), "%s~=%s" % (url, url2))

        # launchpad on launchpad should be a branch root
        url = 'lp:launchpad'
        url2 = self.get_launchpad_info(url)
        self.assertFalse(url2 is None)
        self.assertTrue(client.url_matches(url2, url), "%s~=%s" % (url, url2))
예제 #2
0
        def test_url_matches_with_shortcut(self):
            # bzr on launchpad should have shared repository
            client = BzrClient(self.local_path)
            url = 'lp:bzr'
            url2 = self.get_launchpad_info(url)
            self.assertFalse(url2 is None)
            self.assertTrue(client.url_matches(url2, url),
                            "%s~=%s" % (url, url2))

            # launchpad on launchpad should be a branch root
            url = 'lp:launchpad'
            url2 = self.get_launchpad_info(url)
            self.assertFalse(url2 is None)
            self.assertTrue(client.url_matches(url2, url),
                            "%s~=%s" % (url, url2))
예제 #3
0
파일: test_bzr.py 프로젝트: btubbs/vcstools
 def test_url_matches_with_shortcut_strings_slashes(self):
     client = BzrClient(self.local_path)
     self.assertTrue(client.url_matches('test1234/', 'test1234'))
     self.assertTrue(client.url_matches('test1234', 'test1234/'))
     self.assertTrue(client.url_matches('test1234/', 'test1234/'))
예제 #4
0
 def test_url_matches_with_shortcut_strings_slashes(self):
     client = BzrClient(self.local_path)
     self.assertTrue(client.url_matches('test1234/', 'test1234'))
     self.assertTrue(client.url_matches('test1234', 'test1234/'))
     self.assertTrue(client.url_matches('test1234/', 'test1234/'))