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))
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))