#NEWLINE# def test_new( self ) : #NEWLINE# #INDENT# class Test ( resource2 . Resource ) : #NEWLINE# #INDENT# attr = resource2 . Body ( 'attr' ) #NEWLINE# #UNINDENT# value = 'value' #NEWLINE# sot = Test . new ( attr = value ) #NEWLINE# self . assertIn ( 'attr' , sot . _body . dirty ) #NEWLINE# self . assertEqual ( value , sot . attr )