Example #1
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))
Example #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))
Example #3
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/'))
Example #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/'))