'Caching serializer data with pickle will drop the serializer info,
but does preserve the data itself.'

def test_cache_serializer_data(self):

    class ExampleSerializer(serializers.Serializer, ):
        field1 = serializers.CharField()
        field2 = serializers.CharField()
    serializer = ExampleSerializer({u'field1': u'a', u'field2': u'b'})
    pickled = pickle.dumps(serializer.data)
    data = pickle.loads(pickled)
    assert (data == {u'field1': u'a', u'field2': u'b'})
