#NEWLINE# def test_should_be_immutable_after_store( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'container_ref' : self . entity_href , #NEWLINE# #UNINDENT# } #NEWLINE# self . responses . post ( ( self . entity_base + '/' ) , json = data ) #NEWLINE# container = self . manager . create ( name = self . container . name , secrets = self . container . generic_secrets ) #NEWLINE# container_href = container . store ( ) #NEWLINE# self . assertEqual ( self . entity_href , container_href ) #NEWLINE# attributes = [ 'name' ] #NEWLINE# for attr in attributes : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# setattr ( container , attr , 'test' ) #NEWLINE# self . fail ( "didn't raise an ImmutableException exception" ) #NEWLINE# #UNINDENT# except base . ImmutableException : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . assertRaises ( base . ImmutableException , container . add , self . container . secret . name , self . container . secret )