

def testCommaSeparatedListOfStrings(self):
    v = registry.CommaSeparatedListOfStrings(['foo', 'bar'], 'help')
    self.assertEqual(v(), ['foo', 'bar'])
    v.setValue(['foo', 'bar', 'baz'])
    self.assertEqual(v(), ['foo', 'bar', 'baz'])
    v.set('foo,bar')
    self.assertEqual(v(), ['foo', 'bar'])

dataset/ETHPy150Open ProgVal/Limnoria/test/test_registry.py ValuesTestCase.testCommaSeparatedListOfStrings/original