#NEWLINE# def test_index_marker_and_limit( self ) : #NEWLINE# #INDENT# fixtures = [ ] #NEWLINE# ids = [ ] #NEWLINE# for i in range ( 10 ) : #NEWLINE# #INDENT# fixture = self . _make_fixture ( ( 'TestImage %d' % i ) ) #NEWLINE# fixtures . append ( fixture ) #NEWLINE# ids . append ( self . service . create ( self . context , fixture ) [ 'id' ] ) #NEWLINE# #UNINDENT# image_metas = self . service . index ( self . context , marker = ids [ 3 ] , limit = 1 ) #NEWLINE# self . assertEquals ( len ( image_metas ) , 1 ) #NEWLINE# i = 4 #NEWLINE# for meta in image_metas : #NEWLINE# #INDENT# expected = { #NEWLINE# #INDENT# 'id' : 'DONTCARE' , #NEWLINE# 'name' : ( 'TestImage %d' % i ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertDictMatch ( meta , expected ) #NEWLINE# i = ( i + 1 )