#NEWLINE# def test_instance_list( self ) : #NEWLINE# #INDENT# count = 10 #NEWLINE# self . jsonrpc . count . return_value = count #NEWLINE# for i in range ( count ) : #NEWLINE# #INDENT# self . assertEqual ( self . obj [ i ] . selector [ 'instance' ] , i ) #NEWLINE# #UNINDENT# with self . assertRaises ( IndexError ) : #NEWLINE# #INDENT# self . obj [ i ] #NEWLINE# #UNINDENT# self . jsonrpc . count . return_value = 1 #NEWLINE# self . assertEqual ( self . obj [ 0 ] , self . obj )