Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))