def setUp(self): logging.basicConfig( format= '%(asctime)s%(msecs)03d [%(name)s] %(levelname)s: %(message)s', datefmt="%H:%M%:%S,") logging.getLogger().setLevel(logging.DEBUG) self.service = SerializationServiceV1( serialization_config=SerializationConfig())
def setUp(self): config1 = SerializationConfig() config1.add_portable_factory(FACTORY_ID, the_factory_1) config2 = SerializationConfig() config2.add_portable_factory(FACTORY_ID, the_factory_2) self.service1 = SerializationServiceV1(serialization_config=config1) self.service2 = SerializationServiceV1(serialization_config=config2) base_portable = create_portable() data = self.service1.to_data(base_portable) inp = self.service2._create_data_input(data) portable_serializer = self.service2._registry._portable_serializer self.reader = portable_serializer.create_morphing_reader(inp)
def setUp(self): configure_logging() self.service = SerializationServiceV1(serialization_config=SerializationConfig())