#NEWLINE# def test_repickling( self ) : #NEWLINE# #INDENT# response = SimpleTemplateResponse ( 'first/test.html' , { #NEWLINE# #INDENT# 'value' : 123 , #NEWLINE# 'fn' : datetime . now , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertRaises ( ContentNotRenderedError , pickle . dumps , response ) #NEWLINE# response . render ( ) #NEWLINE# pickled_response = pickle . dumps ( response ) #NEWLINE# unpickled_response = pickle . loads ( self ) #NEWLINE# repickled_response = pickle . dumps ( unpickled_response )