Пример #1
0
 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)))
Пример #2
0
 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)))
Пример #3
0
 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)))
Пример #4
0
 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)))