def testDiskInfoByUUID(self):
    # Create mock config writer
    cfg = self._get_object_mock()

    # Create an instance and attach a disk to it
    inst, disk = self._CreateInstanceDisk(cfg)

    result = cfg.GetDiskInfo("disk0")
    self.assertEqual(disk, result)
Return a dict with information about users of a Postgres server.
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.config_unittest.py/TestConfigRunner.testDiskInfoByUUID--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/user_list