def METHOD_NAME(self):
    for string, expValue in self.stringValues:
        self.assertEqual(self.ty.valueFromString(string), expValue,
                         f"value of string {repr(string)}")
    for string in self.badStringValues:
        with self.assertRaises(Exception):
            self.ty.valueFromString(string, f"expected error for {repr(string)}")