

def testString(self):
    v = registry.String('foo', 'help')
    self.assertEqual(v(), 'foo')
    v.setValue('bar')
    self.assertEqual(v(), 'bar')
    v.set('"biff"')
    self.assertEqual(v(), 'biff')
    v.set("'buff'")
    self.assertEqual(v(), 'buff')
    v.set('"xyzzy')
    self.assertEqual(v(), '"xyzzy')

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