@@ -28,19 +28,12 @@ def test_GET_without_user(self, request_method):
2828 self.us.get()
2929 self.assertEqual(request_method.call_args[0], ('get', _('user')))
3030
31- def test_GET_with_user_in_arg (self, request_method):
31+ def test_GET_with_user (self, request_method):
3232 request_method.return_value = mock_response()
3333 self.us.get('octocat')
3434 self.assertEqual(request_method.call_args[0],
3535 ('get', _('users/octocat')))
3636
37- def test_GET_with_user_in_service(self, request_method):
38- request_method.return_value = mock_response()
39- self.us.set_user('octocat_service')
40- self.us.get()
41- self.assertEqual(request_method.call_args[0],
42- ('get', _('users/octocat_service')))
43-
4437 def test_UPDATE_with_valid_data(self, request_method):
4538 request_method.return_value = mock_response('patch')
4639 self.us.update({'name': 'dummy'})
@@ -101,38 +94,24 @@ def test_LIST_without_user(self, request_method):
10194 self.assertEqual(request_method.call_args[0],
10295 ('get', _('user/followers')))
10396
104- def test_LIST_with_user_in_arg (self, request_method):
97+ def test_LIST_with_user (self, request_method):
10598 request_method.return_value = mock_response_result()
10699 self.fs.list('octocat').all()
107100 self.assertEqual(request_method.call_args[0],
108101 ('get', _('users/octocat/followers')))
109102
110- def test_LIST_with_user_in_service(self, request_method):
111- request_method.return_value = mock_response_result()
112- self.fs.set_user('octocat_service')
113- self.fs.list().all()
114- self.assertEqual(request_method.call_args[0],
115- ('get', _('users/octocat_service/followers')))
116-
117103 def test_LIST_FOLLOWING_without_user(self, request_method):
118104 request_method.return_value = mock_response_result()
119105 self.fs.list_following().all()
120106 self.assertEqual(request_method.call_args[0],
121107 ('get', _('user/following')))
122108
123- def test_LIST_FOLLOWING_with_user_in_arg (self, request_method):
109+ def test_LIST_FOLLOWING_with_user (self, request_method):
124110 request_method.return_value = mock_response_result()
125111 self.fs.list_following('octocat').all()
126112 self.assertEqual(request_method.call_args[0],
127113 ('get', _('users/octocat/following')))
128114
129- def test_LIST_FOLLOWING_with_user_in_service(self, request_method):
130- request_method.return_value = mock_response_result()
131- self.fs.set_user('octocat_service')
132- self.fs.list_following().all()
133- self.assertEqual(request_method.call_args[0],
134- ('get', _('users/octocat_service/following')))
135-
136115 def test_IS_FOLLOWING(self, request_method):
137116 self.fs.is_following('octocat')
138117 self.assertEqual(request_method.call_args[0],
0 commit comments