def test_choice(self):
    spec = choice([10, 20, 30])
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(10, parsed.instantiate([0.0]))
    self.assertEqual(20, parsed.instantiate([0.5]))
    self.assertEqual(30, parsed.instantiate([1.0]))
def test_choice(self):
    spec = choice([10, 20, 30])
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(10, parsed.instantiate([0.0]))
    self.assertEqual(20, parsed.instantiate([0.5]))
    self.assertEqual(30, parsed.instantiate([1.0]))