@@ -88,7 +88,7 @@ def test_constructor(self):
8888
8989 assert not iterator ._started
9090 assert iterator .client is client
91- assert iterator ._item_to_value == item_to_value
91+ assert iterator .item_to_value == item_to_value
9292 assert iterator .max_results == max_results
9393 # Changing attributes.
9494 assert iterator .page_number == 0
@@ -214,7 +214,7 @@ def test_constructor(self):
214214 assert not iterator ._started
215215 assert iterator .client is client
216216 assert iterator .path == path
217- assert iterator ._item_to_value is mock .sentinel .item_to_value
217+ assert iterator .item_to_value is mock .sentinel .item_to_value
218218 assert iterator ._items_key == 'items'
219219 assert iterator .max_results is None
220220 assert iterator .extra_params == {}
@@ -419,10 +419,10 @@ def test_constructor(self):
419419 assert not iterator ._started
420420 assert iterator .client is client
421421 assert iterator .max_results is None
422+ assert iterator .item_to_value is page_iterator ._item_to_value_identity
422423 assert iterator ._method == mock .sentinel .method
423424 assert iterator ._request == mock .sentinel .request
424425 assert iterator ._items_field == items_field
425- assert iterator ._item_to_value is page_iterator ._item_to_value_identity
426426 assert (iterator ._request_token_field ==
427427 page_iterator .GRPCIterator ._DEFAULT_REQUEST_TOKEN_FIELD )
428428 assert (iterator ._response_token_field ==
@@ -446,10 +446,10 @@ def test_constructor_options(self):
446446
447447 assert iterator .client is client
448448 assert iterator .max_results == 42
449+ assert iterator .item_to_value is mock .sentinel .item_to_value
449450 assert iterator ._method == mock .sentinel .method
450451 assert iterator ._request == mock .sentinel .request
451452 assert iterator ._items_field == items_field
452- assert iterator ._item_to_value is mock .sentinel .item_to_value
453453 assert iterator ._request_token_field == request_field
454454 assert iterator ._response_token_field == response_field
455455
@@ -517,7 +517,7 @@ def test_constructor(self):
517517
518518 assert not iterator ._started
519519 assert iterator .client is client
520- assert iterator ._item_to_value is item_to_value
520+ assert iterator .item_to_value is item_to_value
521521 assert iterator .max_results == max_results
522522 assert iterator ._gax_page_iter is page_iter
523523 # Changing attributes.
0 commit comments