def _CreateEnv(self):
    config_mock = ConfigMock()
    inst = config_mock.AddNewInstance(
             osparams={"public_param": "public_info"},
             osparams_private=serializer.PrivateDict({"private_param":
                                                     "private_info",
                                                     "another_private_param":
                                                     "more_privacy"}),
             nics = [])
    inst.disks_info = ""
    inst.secondary_nodes = []

    return backend.OSEnvironment(inst, config_mock.CreateOs())
Loads in historical data from Whisper database
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.backend_unittest.py/TestOSEnvironment._CreateEnv--crossover with--dataset/ETHPy150Open lincolnloop/salmon/salmon/metrics/models.py/Metric.load_archive