def test_uniform(self):
    spec = uniform()
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.0, parsed.instantiate([0.0]))
    self.assertEqual(0.5, parsed.instantiate([0.5]))
    self.assertEqual(1.0, parsed.instantiate([1.0]))
def test_uniform(self):
    spec = uniform()
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.0, parsed.instantiate([0.0]))
    self.assertEqual(0.5, parsed.instantiate([0.5]))
    self.assertEqual(1.0, parsed.instantiate([1.0]))