def METHOD_NAME(self):
    dtype = h5py.special_dtype(enum=('i', {"RED": 0, "GREEN": 1, "BLUE": 42}))
    d = numpy.array(42, dtype=dtype)
    d = self.create_dataset(data=d)
    result = self.read_dataset(d)
    self.assertEqual(result, 'BLUE(42)')