def testDiskInfoByName(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.GetDiskInfoByName("name0")
    self.assertEqual(disk, result)
Check if the GetDiskInfo works with names.
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.config_unittest.py/TestConfigRunner.testDiskInfoByName