#NEWLINE# def test_post_init( self ) : #NEWLINE# #INDENT# state = [ ] #NEWLINE# m = ModelA ( a = 'a' ) #NEWLINE# m . save ( ) #NEWLINE# @ signals . post_init ( ) #NEWLINE# def post_init( sender , instance ) : #NEWLINE# #INDENT# state . append ( ( sender , instance . a ) ) #NEWLINE# #UNINDENT# ModelA . get ( ) #NEWLINE# self . assertEqual ( state , [ ( ModelA , 'a' ) ] )