def test_uniform_rev(self):
    spec = uniform(4, 0)
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.0, parsed.instantiate([0.0]))
    self.assertEqual(2.0, parsed.instantiate([0.5]))
    self.assertEqual(4.0, parsed.instantiate([1.0]))
def test_uniform_rev(self):
    spec = uniform(4, 0)
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.0, parsed.instantiate([0.0]))
    self.assertEqual(2.0, parsed.instantiate([0.5]))
    self.assertEqual(4.0, parsed.instantiate([1.0]))