Revision d48c944b test/py/ganeti.constants_unittest.py

b/test/py/ganeti.constants_unittest.py
170 170
      self.assertTrue(
171 171
          constants.MAP_DISK_TEMPLATE_STORAGE_TYPE[disk_template] is not None)
172 172

  
173
  def testLvmDiskTemplates(self):
174
    lvm_by_storage_type = [
175
        dt for dt in constants.DISK_TEMPLATES
176
        if constants.ST_LVM_VG == constants.MAP_DISK_TEMPLATE_STORAGE_TYPE[dt]]
177
    self.assertEqual(set(lvm_by_storage_type), set(constants.DTS_LVM))
178

  
173 179

  
174 180
if __name__ == "__main__":
175 181
  testutils.GanetiTestProgram()

Also available in: Unified diff