Ejemplo n.º 1
0
def _init_serializer():
    serializer = rpc.RequestContextSerializer(
        objects_base.ZunObjectSerializer())
    if osprofiler:
        serializer = rpc.ProfilerRequestContextSerializer(serializer)
    else:
        serializer = rpc.RequestContextSerializer(serializer)
    return serializer
Ejemplo n.º 2
0
 def setUp(self):
     super(TestProfilerRequestContextSerializer, self).setUp()
     self.ser = rpc.ProfilerRequestContextSerializer(mock.Mock())