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