Revision 74f37195

b/lib/constants.py
205 205
  ST_LVM_PV: frozenset([SF_ALLOCATABLE]),
206 206
  }
207 207

  
208
# Local disk status
209
# Note: Code depends on LDS_OKAY < LDS_UNKNOWN < LDS_FAULTY
210
(LDS_OKAY,
211
 LDS_UNKNOWN,
212
 LDS_FAULTY) = range(1, 4)
213

  
208 214
# disk template types
209 215
DT_DISKLESS = "diskless"
210 216
DT_PLAIN = "plain"
b/test/ganeti.constants_unittest.py
54 54
                    (constants.CONFIG_MAJOR, constants.CONFIG_MINOR,
55 55
                     constants.CONFIG_REVISION))
56 56

  
57
  def testDiskStatus(self):
58
    self.failUnless(constants.LDS_OKAY < constants.LDS_UNKNOWN)
59
    self.failUnless(constants.LDS_UNKNOWN < constants.LDS_FAULTY)
60

  
57 61

  
58 62
class TestParameterNames(unittest.TestCase):
59 63
  """HV/BE parameter tests"""
......
69 73
                        "The %s parameter '%s' contains invalid characters" %
70 74
                        (kind, key))
71 75

  
76

  
72 77
if __name__ == '__main__':
73 78
  unittest.main()

Also available in: Unified diff