#NEWLINE# def test_queryset_can_be_pickled( self ) : #NEWLINE# #INDENT# normal = Normal . objects . create ( shared_field = 'Shared' ) #NEWLINE# qs = Normal . objects . all ( ) #NEWLINE# serialized_repr = pickle . dumps ( qs ) #NEWLINE# unpickled = pickle . loads ( serialized_repr ) #NEWLINE# self . assertEqual ( qs . model , qs . model ) #NEWLINE# self . assertEqual ( unpickled . get ( pk = normal . pk ) , normal )