Example #1
0
 def test_url_path_no_hostname(self):
     """
     Correct path from a URL path.
     """
     path = '/ClusterHQ/flocker/pull/1717'
     self.assertEqual(path, merge_pr.url_path(path))
Example #2
0
 def test_url_path_no_hostname(self):
     """
     Correct path from a URL path.
     """
     path = '/ClusterHQ/flocker/pull/1717'
     self.assertEqual(path, merge_pr.url_path(path))
Example #3
0
 def test_url_path(self):
     """
     Correct path from a full URL.
     """
     path = '/ClusterHQ/flocker/pull/1717'
     self.assertEqual(path, merge_pr.url_path('https://github.com' + path))
Example #4
0
 def test_url_path(self):
     """
     Correct path from a full URL.
     """
     path = '/ClusterHQ/flocker/pull/1717'
     self.assertEqual(path, merge_pr.url_path('https://github.com' + path))