Removed unnecessary leading slashes in httpbin's endpoints #529

Merged
merged 1 commit into from Mar 31, 2012
Jump to file or symbol
Failed to load files and symbols.
+4 −5
Split
View
@@ -29,7 +29,6 @@
def httpbin(*suffix):
"""Returns url for HTTPBIN resource."""
-
return HTTPBIN_URL + '/'.join(suffix)
@@ -77,11 +76,11 @@ def test_path_is_not_double_encoded(self):
self.assertEqual(request.path_url, "/get/test%20case")
def test_HTTP_200_OK_GET(self):
- r = get(httpbin('/get'))
+ r = get(httpbin('get'))
self.assertEqual(r.status_code, 200)
def test_response_sent(self):
- r = get(httpbin('/get'))
+ r = get(httpbin('get'))
self.assertTrue(r.request.sent)
@@ -204,7 +203,7 @@ def test_user_agent_transfers(self):
self.assertTrue(heads['user-agent'] in r.text)
def test_HTTP_200_OK_HEAD(self):
- r = head(httpbin('/get'))
+ r = head(httpbin('get'))
self.assertEqual(r.status_code, 200)
def test_HTTP_200_OK_PUT(self):
@@ -533,7 +532,7 @@ def test_relative_redirect_history(self):
def test_session_HTTP_200_OK_GET(self):
s = requests.session()
- r = get(httpbin('/get'), session=s)
+ r = get(httpbin('get'), session=s)
self.assertEqual(r.status_code, 200)
def test_session_persistent_headers(self):