def testFromDictFloat(self):
    d = {
        'type': 'scalar',
        'name': 'x',
        'units': 'unit',
        'value': 42.4,
        'improvement_direction': improvement_direction.UP,
    }

    v = value.Value.FromDict(d, {})

    self.assertTrue(isinstance(v, scalar.ScalarValue))
    self.assertEquals(v.value, 42.4)