def test_choice_str(self):
    spec = choice(['foo', 'bar'])
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual('foo', parsed.instantiate([0.0]))
    self.assertEqual('bar', parsed.instantiate([1.0]))
def test_choice_str(self):
    spec = choice(['foo', 'bar'])
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual('foo', parsed.instantiate([0.0]))
    self.assertEqual('bar', parsed.instantiate([1.0]))