@@ -535,7 +535,9 @@ def test_image_list_no_options(self):
535535 # returns a tuple containing the column names and an iterable
536536 # containing the data to be listed.
537537 columns , data = self .cmd .take_action (parsed_args )
538- self .api_mock .image_list .assert_called_with ()
538+ self .api_mock .image_list .assert_called_with (
539+ marker = self ._image .id ,
540+ )
539541
540542 self .assertEqual (self .columns , columns )
541543 self .assertEqual (self .datalist , tuple (data ))
@@ -558,6 +560,7 @@ def test_image_list_public_option(self):
558560 columns , data = self .cmd .take_action (parsed_args )
559561 self .api_mock .image_list .assert_called_with (
560562 public = True ,
563+ marker = self ._image .id ,
561564 )
562565
563566 self .assertEqual (self .columns , columns )
@@ -581,6 +584,7 @@ def test_image_list_private_option(self):
581584 columns , data = self .cmd .take_action (parsed_args )
582585 self .api_mock .image_list .assert_called_with (
583586 private = True ,
587+ marker = self ._image .id ,
584588 )
585589
586590 self .assertEqual (self .columns , columns )
@@ -604,6 +608,7 @@ def test_image_list_shared_option(self):
604608 columns , data = self .cmd .take_action (parsed_args )
605609 self .api_mock .image_list .assert_called_with (
606610 shared = True ,
611+ marker = self ._image .id ,
607612 )
608613
609614 self .assertEqual (self .columns , columns )
@@ -622,7 +627,9 @@ def test_image_list_long_option(self):
622627 # returns a tuple containing the column names and an iterable
623628 # containing the data to be listed.
624629 columns , data = self .cmd .take_action (parsed_args )
625- self .api_mock .image_list .assert_called_with ()
630+ self .api_mock .image_list .assert_called_with (
631+ marker = self ._image .id ,
632+ )
626633
627634 collist = (
628635 'ID' ,
@@ -670,7 +677,9 @@ def test_image_list_property_option(self, sf_mock):
670677 # returns a tuple containing the column names and an iterable
671678 # containing the data to be listed.
672679 columns , data = self .cmd .take_action (parsed_args )
673- self .api_mock .image_list .assert_called_with ()
680+ self .api_mock .image_list .assert_called_with (
681+ marker = self ._image .id ,
682+ )
674683 sf_mock .assert_called_with (
675684 [self ._image ],
676685 attr = 'a' ,
@@ -693,7 +702,9 @@ def test_image_list_sort_option(self, si_mock):
693702 # returns a tuple containing the column names and an iterable
694703 # containing the data to be listed.
695704 columns , data = self .cmd .take_action (parsed_args )
696- self .api_mock .image_list .assert_called_with ()
705+ self .api_mock .image_list .assert_called_with (
706+ marker = self ._image .id ,
707+ )
697708 si_mock .assert_called_with (
698709 [self ._image ],
699710 'name:asc'
@@ -712,7 +723,7 @@ def test_image_list_limit_option(self):
712723
713724 columns , data = self .cmd .take_action (parsed_args )
714725 self .api_mock .image_list .assert_called_with (
715- limit = 1 ,
726+ limit = 1 , marker = self . _image . id
716727 )
717728
718729 self .assertEqual (self .columns , columns )
0 commit comments