Skip to content

Commit

Permalink
removing redundant mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman committed Feb 23, 2013
1 parent e1c4a8a commit c8e429d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/test_service.py
Expand Up @@ -302,33 +302,28 @@ def test_request_with_optional_params_oauth_version(self):
r = self.service.request('GET', 'http://example.com/', params=params)
self.assert_ok(r)

@patch.object(requests.Session, 'request')
def test_request_with_optional_params_as_string(self, mock_request):
def test_request_with_optional_params_as_string(self):
params = 'oauth_callback=http://example.com/callback'
r = self.service.request('GET', 'http://example.com/', params=params)
self.assert_ok(r)

@patch.object(requests.Session, 'request')
def test_request_with_optional_data_as_string(self, mock_request):
def test_request_with_optional_data_as_string(self):
data = 'oauth_callback=http://example.com/callback'
r = self.service.request('POST', 'http://example.com/', data=data)
self.assert_ok(r)

@patch.object(requests.Session, 'request')
def test_request_with_optional_params_with_data(self, mock_request):
def test_request_with_optional_params_with_data(self):
data = {'oauth_callback': 'http://example.com/callback'}
r = self.service.request('POST', 'http://example.com/', data=data)
self.assert_ok(r)

@patch.object(requests.Session, 'request')
def test_request_with_header_auth(self, mock_request):
def test_request_with_header_auth(self):
r = self.service.request('GET',
'http://example.com/',
header_auth=True)
self.assert_ok(r)

@patch.object(requests.Session, 'request')
def test_request_with_header_auth_with_realm(self, mock_request):
def test_request_with_header_auth_with_realm(self):
r = self.service.request('GET',
'http://example.com/',
header_auth=True,
Expand Down

0 comments on commit c8e429d

Please sign in to comment.