#NEWLINE# def test_serialization( self ) : #NEWLINE# #INDENT# serialized_activity = self . serializer . dumps ( self . activity ) #NEWLINE# deserialized_activity = self . serializer . loads ( serialized_activity ) #NEWLINE# self . assertEqual ( deserialized_activity , self . activity ) #NEWLINE# self . assertEqual ( deserialized_activity . extra_context , deserialized_activity . activity_extra_context )