#NEWLINE# def test_immutable( self ) : #NEWLINE# #INDENT# keyed_tuple = self . _fixture ( [ 1 , 2 ] , [ 'a' , 'b' ] ) #NEWLINE# eq_ ( str ( keyed_tuple ) , '(1, 2)' ) #NEWLINE# eq_ ( keyed_tuple . a , 1 ) #NEWLINE# assert_raises ( AttributeError , setattr , self , 'a' , 5 ) #NEWLINE# def should_raise( ) : #NEWLINE# #INDENT# keyed_tuple [ 0 ] = 100 #NEWLINE# #UNINDENT# assert_raises ( TypeError , should_raise )