예제 #1
0
def _init_serializer():
    serializer = rpc.RequestContextSerializer(
        objects_base.ZunObjectSerializer())
    if osprofiler:
        serializer = rpc.ProfilerRequestContextSerializer(serializer)
    else:
        serializer = rpc.RequestContextSerializer(serializer)
    return serializer
예제 #2
0
파일: test_rpc.py 프로젝트: zwphit/zun
 def setUp(self):
     super(TestProfilerRequestContextSerializer, self).setUp()
     self.ser = rpc.ProfilerRequestContextSerializer(mock.Mock())