def test_url_path_parts_no_hostname(self): """ Correct segments from a URL path. """ path_parts = ['ClusterHQ', 'flocker', 'pull', '1717'] self.assertEqual([''] + path_parts, merge_pr.url_path_parts('/' + '/'.join(path_parts)))
def test_url_path_parts_no_hostname(self): """ Correct segments from a URL path. """ path_parts = ['ClusterHQ', 'flocker', 'pull', '1717'] self.assertEqual( [''] + path_parts, merge_pr.url_path_parts('/' + '/'.join(path_parts)))
def test_url_path_parts(self): """ Correct segments from a full URL. """ path_parts = ['ClusterHQ', 'flocker', 'pull', '1717'] self.assertEqual([''] + path_parts, merge_pr.url_path_parts('https://github.com/' + '/'.join(path_parts)))
def test_url_path_parts(self): """ Correct segments from a full URL. """ path_parts = ['ClusterHQ', 'flocker', 'pull', '1717'] self.assertEqual( [''] + path_parts, merge_pr.url_path_parts( 'https://github.com/' + '/'.join(path_parts)))