#NEWLINE# def test_updates_setitem( self ) : #NEWLINE# #INDENT# ok = True #NEWLINE# up = OrderedUpdates ( ) #NEWLINE# sv = theano . shared ( 'asdf' ) #NEWLINE# self . assertRaises ( TypeError , ok . __setitem__ , 5 , 7 ) #NEWLINE# self . assertRaises ( TypeError , up . __setitem__ , T . vector ( ) , 7 ) #NEWLINE# up [ theano . shared ( 88 ) ] = 7