コード例 #1
0
 def test_get_config_drive_type_disk(self):
     self.flags(config_drive_format='vfat')
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('disk', config_drive_type)
コード例 #2
0
 def test_get_config_drive_type_cdrom(self):
     self.flags(config_drive_format='iso9660')
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('cdrom', config_drive_type)
コード例 #3
0
 def test_get_config_drive_type_default(self):
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('cdrom', config_drive_type)
コード例 #4
0
ファイル: test_blockinfo.py プロジェクト: hsluoyz/patron
 def test_get_config_drive_type_disk(self):
     self.flags(config_drive_format='vfat')
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('disk', config_drive_type)
コード例 #5
0
ファイル: test_blockinfo.py プロジェクト: hsluoyz/patron
 def test_get_config_drive_type_cdrom(self):
     self.flags(config_drive_format='iso9660')
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('cdrom', config_drive_type)
コード例 #6
0
ファイル: test_blockinfo.py プロジェクト: hsluoyz/patron
 def test_get_config_drive_type_default(self):
     config_drive_type = blockinfo.get_config_drive_type()
     self.assertEqual('cdrom', config_drive_type)