#NEWLINE# def test_set_ValueError( self ) : #NEWLINE# #INDENT# class Test ( resource . Resource ) : #NEWLINE# #INDENT# attr = resource . prop ( 'attr' , type = int ) #NEWLINE# #UNINDENT# t = Test ( ) #NEWLINE# def should_raise( ) : #NEWLINE# #INDENT# t . attr = 'this is not an int' #NEWLINE# #UNINDENT# self . assertThat ( t , matchers . raises ( ValueError ) )