File oauth2-drop-tests-with-net-access.patch of Package python-oauth2
diff -ruN a/tests/test_oauth.py b/tests/test_oauth.py
--- a/tests/test_oauth.py 2011-12-13 18:38:58.000000000 +0100
+++ b/tests/test_oauth.py 2013-04-23 13:50:57.053848464 +0200
@@ -1193,41 +1193,6 @@
except ValueError:
pass
- def test_access_token_get(self):
- """Test getting an access token via GET."""
- client = oauth.Client(self.consumer, None)
- resp, content = client.request(self._uri('request_token'), "GET")
-
- self.assertEquals(int(resp['status']), 200)
-
- def test_access_token_post(self):
- """Test getting an access token via POST."""
- client = oauth.Client(self.consumer, None)
- resp, content = client.request(self._uri('request_token'), "POST")
-
- self.assertEquals(int(resp['status']), 200)
-
- res = dict(parse_qsl(content))
- self.assertTrue('oauth_token' in res)
- self.assertTrue('oauth_token_secret' in res)
-
- def _two_legged(self, method):
- client = oauth.Client(self.consumer, None)
-
- return client.request(self._uri('two_legged'), method,
- body=urllib.urlencode(self.body))
-
- def test_two_legged_post(self):
- """A test of a two-legged OAuth POST request."""
- resp, content = self._two_legged("POST")
-
- self.assertEquals(int(resp['status']), 200)
-
- def test_two_legged_get(self):
- """A test of a two-legged OAuth GET request."""
- resp, content = self._two_legged("GET")
- self.assertEquals(int(resp['status']), 200)
-
@mock.patch('httplib2.Http.request')
def test_multipart_post_does_not_alter_body(self, mockHttpRequest):
random_result = random.randint(1,100)
Binary files a/tests/.test_oauth.py.swp and b/tests/.test_oauth.py.swp differ