@@ -127,8 +127,13 @@ def test_iterate(self, _iter_call):
127127
128128 @mock .patch ('SoftLayer.API.Client.iter_call' )
129129 def test_service_iter_call (self , _iter_call ):
130- self .client ['SERVICE' ].iter_call ('METHOD' )
131- _iter_call .assert_called_with ('SERVICE' , 'METHOD' )
130+ self .client ['SERVICE' ].iter_call ('METHOD' , 'ARG' )
131+ _iter_call .assert_called_with ('SERVICE' , 'METHOD' , 'ARG' )
132+
133+ @mock .patch ('SoftLayer.API.Client.iter_call' )
134+ def test_service_iter_call (self , _iter_call ):
135+ self .client ['SERVICE' ].iter_call ('METHOD' , 'ARG' , chunk = 2 )
136+ _iter_call .assert_called_with ('SERVICE' , 'METHOD' , 'ARG' , chunk = 2 )
132137
133138 @mock .patch ('SoftLayer.API.Client.call' )
134139 def test_iter_call (self , _call ):
@@ -176,12 +181,17 @@ def test_iter_call(self, _call):
176181
177182 # chunk=25, limit=30, offset=12
178183 _call .side_effect = [list (range (0 , 25 )), list (range (25 , 30 ))]
179- result = list (self .client .iter_call (
180- 'SERVICE' , 'METHOD' , iter = True , limit = 30 , chunk = 25 , offset = 12 ))
184+ result = list (self .client .iter_call ('SERVICE' , 'METHOD' , 'ARG' ,
185+ iter = True ,
186+ limit = 30 ,
187+ chunk = 25 ,
188+ offset = 12 ))
181189 self .assertEqual (list (range (30 )), result )
182190 _call .assert_has_calls ([
183- mock .call ('SERVICE' , 'METHOD' , iter = False , limit = 25 , offset = 12 ),
184- mock .call ('SERVICE' , 'METHOD' , iter = False , limit = 5 , offset = 37 ),
191+ mock .call ('SERVICE' , 'METHOD' , 'ARG' ,
192+ iter = False , limit = 25 , offset = 12 ),
193+ mock .call ('SERVICE' , 'METHOD' , 'ARG' ,
194+ iter = False , limit = 5 , offset = 37 ),
185195 ])
186196
187197 # Chunk size of 0 is invalid
0 commit comments