コード例 #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))
コード例 #2
0
ファイル: test_merge_pr.py プロジェクト: AlexRRR/flocker
 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))
コード例 #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))
コード例 #4
0
ファイル: test_merge_pr.py プロジェクト: AlexRRR/flocker
 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))